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

Issue 8612002: Protector bubble cancels itself if user changes default search engine manually. (Closed)

Created:
9 years, 1 month ago by Ivan Korotkov
Modified:
9 years, 1 month ago
Reviewers:
whywhat
CC:
chromium-reviews
Visibility:
Public.

Description

Protector bubble cancels itself if user changes default search engine manually. BUG=None TEST=Manual: trigger protector bubble, change search engine manually; bubble should vanish. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110933

Patch Set 1 #

Total comments: 10

Patch Set 2 : Review fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -65 lines) Patch
M chrome/browser/protector/base_setting_change.h View 2 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/protector/base_setting_change.cc View 1 chunk +11 lines, -3 lines 0 comments Download
M chrome/browser/protector/default_search_provider_change.cc View 1 7 chunks +56 lines, -27 lines 0 comments Download
M chrome/browser/protector/protector.h View 1 2 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/protector/protector.cc View 2 chunks +24 lines, -15 lines 0 comments Download
M chrome/browser/protector/settings_change_global_error.h View 1 3 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/protector/settings_change_global_error.cc View 4 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Ivan Korotkov
PTAL
9 years, 1 month ago (2011-11-21 13:53:21 UTC) #1
whywhat
lgtm http://codereview.chromium.org/8612002/diff/1/chrome/browser/protector/base_setting_change.h File chrome/browser/protector/base_setting_change.h (right): http://codereview.chromium.org/8612002/diff/1/chrome/browser/protector/base_setting_change.h#newcode32 chrome/browser/protector/base_setting_change.h:32: // call the base method. This method cries ...
9 years, 1 month ago (2011-11-21 14:51:21 UTC) #2
Ivan Korotkov
9 years, 1 month ago (2011-11-21 15:27:38 UTC) #3
http://codereview.chromium.org/8612002/diff/1/chrome/browser/protector/base_s...
File chrome/browser/protector/base_setting_change.h (right):

http://codereview.chromium.org/8612002/diff/1/chrome/browser/protector/base_s...
chrome/browser/protector/base_setting_change.h:32: // call the base method.
Kind of, but it's called asynchronously (to reset default SE).
We can call pass Protector to the real ctor so there will be no need to call it
from base.

http://codereview.chromium.org/8612002/diff/1/chrome/browser/protector/defaul...
File chrome/browser/protector/default_search_provider_change.cc (right):

http://codereview.chromium.org/8612002/diff/1/chrome/browser/protector/defaul...
chrome/browser/protector/default_search_provider_change.cc:191:
default_search_provider_) {
Nice catch, thanks.

http://codereview.chromium.org/8612002/diff/1/chrome/browser/protector/protec...
File chrome/browser/protector/protector.cc (right):

http://codereview.chromium.org/8612002/diff/1/chrome/browser/protector/protec...
chrome/browser/protector/protector.cc:82: delete this;
This is called asynchronously at the moment when nobody should have a reference
to the Protector (because Change is deleted, Error not yet created and the
function that created Protector already exited).
So I'd rather not do async deletion from more than one place.

http://codereview.chromium.org/8612002/diff/1/chrome/browser/protector/protec...
File chrome/browser/protector/protector.h (right):

http://codereview.chromium.org/8612002/diff/1/chrome/browser/protector/protec...
chrome/browser/protector/protector.h:58: // middle of some operations on
settings that have changed.
On 2011/11/21 14:51:21, whywhat wrote:
> You should document that object might be self-destroyed here...

Done.

http://codereview.chromium.org/8612002/diff/1/chrome/browser/protector/settin...
File chrome/browser/protector/settings_change_global_error.h (right):

http://codereview.chromium.org/8612002/diff/1/chrome/browser/protector/settin...
chrome/browser/protector/settings_change_global_error.h:28: // deleted until
|OnRemovedFromProfile| is called. Uses |delegate| to notify
On 2011/11/21 14:51:21, whywhat wrote:
> Did you mean RemoveFromProfile?

I meant |Delegate::OnRemovedFromProfile|

Powered by Google App Engine
This is Rietveld 408576698