Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Issue 2672443002: Don't create MostVisitedSites in incognito (Closed)

Created:
3 years, 10 months ago by Marc Treib
Modified:
3 years, 10 months ago
Reviewers:
mastiz, sfiera
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't create MostVisitedSites in incognito With NTPTilesInInstantService enabled, InstantService attempts to create a MostVisitedSites instance even in incognito profiles, which caused a crash. This CL changes ChromeMostVisitedSitesFactory to return nullptr for incognito profiles, and also updates InstantService to properly handle the returned nullptr. BUG=687507 Review-Url: https://codereview.chromium.org/2672443002 Cr-Commit-Position: refs/heads/master@{#447495} Committed: https://chromium.googlesource.com/chromium/src/+/837e405817fcb63cd3652381d3fb8aae3c28e16d

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/search/instant_service.cc View 1 chunk +2 lines, -1 line 3 comments Download

Messages

Total messages: 15 (9 generated)
Marc Treib
PTAL!
3 years, 10 months ago (2017-02-01 11:09:49 UTC) #4
sfiera
LGTM https://codereview.chromium.org/2672443002/diff/1/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/2672443002/diff/1/chrome/browser/search/instant_service.cc#newcode107 chrome/browser/search/instant_service.cc:107: most_visited_sites_->SetMostVisitedURLsObserver(this, 8); FYI, merge conflict with https://crrev.com/2619993002
3 years, 10 months ago (2017-02-01 11:24:57 UTC) #5
Marc Treib
+mastiz explicitly: FYI merge conflict. Scream if you want to land your CL first ;) ...
3 years, 10 months ago (2017-02-01 12:42:46 UTC) #9
mastiz
https://codereview.chromium.org/2672443002/diff/1/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/2672443002/diff/1/chrome/browser/search/instant_service.cc#newcode107 chrome/browser/search/instant_service.cc:107: most_visited_sites_->SetMostVisitedURLsObserver(this, 8); On 2017/02/01 12:42:46, Marc Treib wrote: > ...
3 years, 10 months ago (2017-02-01 13:03:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2672443002/1
3 years, 10 months ago (2017-02-01 13:05:00 UTC) #12
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 13:09:35 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/837e405817fcb63cd3652381d3fb...

Powered by Google App Engine
This is Rietveld 408576698