Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl from locally persisted Brave Ads state #5159

Merged
merged 1 commit into from
Apr 7, 2020

Conversation

tmancey
Copy link
Collaborator

@tmancey tmancey commented Apr 4, 2020

Resolves brave/brave-browser#9022

Submitter Checklist:

Test Plan:

Confirm lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl are not persisted in Default/ads_service/client.json

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

@@ -700,13 +697,11 @@ void AdsImpl::OnPageLoaded(
return;
}

if (TestSearchState(url)) {
if (SearchProviders::IsSearchEngine(url)) {
BLOG(INFO) << "Site visited " << url << ", URL is a search engine";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the URL even be logged? logs can get persisted to disk unintentionally

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, this seems like it should be a VLOG entry anyway if we kept it at all. INFO doesn't seem like the right logging level even without the persistence issue

Copy link
Member

@diracdeltas diracdeltas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a comment but overall lgtm

@@ -21,12 +20,7 @@
"adUUID": "",
"locale": "en",
"lastUserActivity": 0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we clear this from existing state or does that happen somewhere that I missed?

Copy link
Collaborator

@bridiver bridiver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved with discussed changes to remove existing state values and logging of urls

…, shopActivity and shopUrl from locally persisted Brave Ads state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants