Skip to content

Commit

Permalink
[ads] General code health
Browse files Browse the repository at this point in the history
  • Loading branch information
tmancey committed Nov 7, 2024
1 parent af6a9f5 commit 9f5a7fb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions browser/brave_ads/device_id/device_id_impl_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ namespace brave_ads {

namespace {

struct DisallwedMask {
struct DisallowedMask {
template <typename... Args>
constexpr DisallwedMask(Args... args) // NOLINT(runtime/explicit)
constexpr DisallowedMask(Args... args) // NOLINT(runtime/explicit)
: address{static_cast<uint8_t>(args)...}, size(sizeof...(args)) {}

base::span<const uint8_t> as_span() const {
Expand All @@ -27,7 +27,7 @@ struct DisallwedMask {
size_t size;
};

void TestDisallowedRange(DisallwedMask mask) {
void TestDisallowedRange(DisallowedMask mask) {
std::array<uint8_t, 6u> address;

// test the lower bound of the match
Expand Down
4 changes: 2 additions & 2 deletions browser/brave_ads/tabs/ads_tab_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ constexpr int kHttpClientErrorResponseStatusCodeClass = 4;
constexpr int kHttpServerErrorResponseStatusCodeClass = 5;

constexpr char16_t kSerializeDocumentToStringJavaScript[] =
u"new XMLSerializer().serializeToString(document)";
U"new XMLSerializer().serializeToString(document)";

constexpr char16_t kDocumentBodyInnerTextJavaScript[] =
u"document?.body?.innerText";
U"document?.body?.innerText";

std::string MediaPlayerUuid(const content::MediaPlayerId& id) {
return base::StringPrintf("%d%d%d", id.frame_routing_id.child_id,
Expand Down
1 change: 0 additions & 1 deletion browser/brave_ads/tooltips/ads_tooltips_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include <string>

#include "base/memory/raw_ptr.h"
#include "brave/browser/ui/brave_tooltips/brave_tooltip_delegate.h"
#include "brave/components/brave_ads/browser/tooltips/ads_tooltips_delegate.h"

Expand Down
1 change: 0 additions & 1 deletion components/brave_ads/browser/ads_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <string>
#include <vector>

#include "base/memory/raw_ptr.h"
#include "base/time/time.h"
#include "brave/components/brave_ads/browser/ads_service_callback.h"
#include "brave/components/brave_ads/browser/ads_service_observer.h"
Expand Down

0 comments on commit 9f5a7fb

Please sign in to comment.