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

Issue 10855049: Deal correctly with BrowsingData API calls during startup. (Closed)

Created:
8 years, 4 months ago by Mike West
Modified:
8 years, 4 months ago
Reviewers:
Bernhard Bauer, marja
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Deal correctly with BrowsingData API calls during startup. We're apparently running into situations where an extension is attempting to clear browsing data before either the browser or the profile is correctly set up. This CL takes the simplest approach: if we can't grab the browser or the profile, exit early (hopefully) without crashing. BUG=139075 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150583

Patch Set 1 #

Patch Set 2 : That's much simpler. #

Total comments: 1

Patch Set 3 : DCHECK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M chrome/browser/extensions/api/browsing_data/browsing_data_api.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Mike West
Hello Bernhard and Marja! Would you mind taking a look at this CL, which I ...
8 years, 4 months ago (2012-08-08 11:31:29 UTC) #1
Bernhard Bauer
We shouldn't use GetCurrentBrowser() to get the profile. UIThreadExtensionFunction has a profile() method that returns ...
8 years, 4 months ago (2012-08-08 11:38:27 UTC) #2
Mike West
On 2012/08/08 11:38:27, Bernhard Bauer wrote: > We shouldn't use GetCurrentBrowser() to get the profile. ...
8 years, 4 months ago (2012-08-08 11:44:12 UTC) #3
Bernhard Bauer
http://codereview.chromium.org/10855049/diff/1003/chrome/browser/extensions/api/browsing_data/browsing_data_api.cc File chrome/browser/extensions/api/browsing_data/browsing_data_api.cc (right): http://codereview.chromium.org/10855049/diff/1003/chrome/browser/extensions/api/browsing_data/browsing_data_api.cc#newcode147 chrome/browser/extensions/api/browsing_data/browsing_data_api.cc:147: if (removal_mask_ & BrowsingDataRemover::REMOVE_PLUGIN_DATA && profile()) { I think ...
8 years, 4 months ago (2012-08-08 11:46:51 UTC) #4
Mike West
On 2012/08/08 11:46:51, Bernhard Bauer wrote: > http://codereview.chromium.org/10855049/diff/1003/chrome/browser/extensions/api/browsing_data/browsing_data_api.cc > File chrome/browser/extensions/api/browsing_data/browsing_data_api.cc (right): > > http://codereview.chromium.org/10855049/diff/1003/chrome/browser/extensions/api/browsing_data/browsing_data_api.cc#newcode147 ...
8 years, 4 months ago (2012-08-08 12:17:31 UTC) #5
Bernhard Bauer
On 2012/08/08 12:17:31, Mike West (chromium) wrote: > On 2012/08/08 11:46:51, Bernhard Bauer wrote: > ...
8 years, 4 months ago (2012-08-08 12:20:53 UTC) #6
Mike West
On 2012/08/08 12:20:53, Bernhard Bauer wrote: > On 2012/08/08 12:17:31, Mike West (chromium) wrote: > ...
8 years, 4 months ago (2012-08-08 12:28:29 UTC) #7
Bernhard Bauer
LGTM
8 years, 4 months ago (2012-08-08 12:54:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/10855049/5002
8 years, 4 months ago (2012-08-08 12:54:53 UTC) #9
commit-bot: I haz the power
Try job failure for 10855049-5002 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-08-08 14:34:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/10855049/5002
8 years, 4 months ago (2012-08-08 14:37:19 UTC) #11
commit-bot: I haz the power
8 years, 4 months ago (2012-08-08 17:46:06 UTC) #12
Change committed as 150583

Powered by Google App Engine
This is Rietveld 408576698