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

Issue 8342049: Added Protector, hooked up DSE verification with error bubble. (Closed)

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

Description

Added Protector, hooked up DSE verification with error bubble. Moved signing key to a separate cc file. R=ivankr@chromium.org,sky@chromium.org BUG=94447 TEST=Before launching Chrome modify Default Search Engine ID value in Web Data SQL db. Check that error bubble is shown on Chrome startup and its buttons work as expected. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107426

Patch Set 1 #

Total comments: 22

Patch Set 2 : Fixed merge conflict. Set default search engine when old setting is lost #

Total comments: 2

Patch Set 3 : Moved changes in separate files. Simplified objects ownership. #

Total comments: 4

Patch Set 4 : Moved check to WebDataService initialization. #

Total comments: 6

Patch Set 5 : Moved check to Protector, work with search engines via TemplateURLService #

Total comments: 13

Patch Set 6 : Removed Protector from Profile. #

Patch Set 7 : Fixed comment #

Total comments: 12

Patch Set 8 : Moved out delegate interface. Cache URLs in Protector. #

Patch Set 9 : Always persist default search provider in db #

Total comments: 10

Patch Set 10 : Added test for new WDKeywordsResult field. Fixed TemplateURLServiceTest. #

Patch Set 11 : Moved histograms to protector folder #

Unified diffs Side-by-side diffs Delta from patch set Stats (+746 lines, -150 lines) Patch
A chrome/browser/protector/default_search_provider_change.cc View 1 2 3 4 5 6 7 8 1 chunk +120 lines, -0 lines 0 comments Download
A chrome/browser/protector/histograms.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/protector/histograms.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/browser/protector/keys.h View 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/protector/keys.cc View 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/browser/protector/protector.h View 1 2 3 4 5 6 7 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/protector/protector.cc View 1 2 3 4 5 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/browser/protector/setting_change.h View 1 2 3 4 1 chunk +73 lines, -0 lines 0 comments Download
M chrome/browser/protector/settings_change_global_error.h View 1 2 3 4 5 6 7 2 chunks +38 lines, -38 lines 0 comments Download
M chrome/browser/protector/settings_change_global_error.cc View 1 2 3 4 5 6 7 7 chunks +69 lines, -38 lines 0 comments Download
A chrome/browser/protector/settings_change_global_error_delegate.h View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 4 5 6 7 8 9 5 chunks +33 lines, -18 lines 0 comments Download
M chrome/browser/search_engines/util.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/util.cc View 1 2 3 4 5 6 7 4 chunks +39 lines, -10 lines 0 comments Download
M chrome/browser/webdata/keyword_table.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/webdata/keyword_table.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +30 lines, -40 lines 0 comments Download
M chrome/browser/webdata/keyword_table_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +43 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
whywhat
9 years, 2 months ago (2011-10-19 19:47:13 UTC) #1
Ivan Korotkov
http://codereview.chromium.org/8342049/diff/1/chrome/browser/protector/protector.cc File chrome/browser/protector/protector.cc (right): http://codereview.chromium.org/8342049/diff/1/chrome/browser/protector/protector.cc#newcode22 chrome/browser/protector/protector.cc:22: DefaultSearchProviderChange::DefaultSearchProviderChange( Please move to a separate .cc file. http://codereview.chromium.org/8342049/diff/1/chrome/browser/protector/protector.cc#newcode80 ...
9 years, 2 months ago (2011-10-19 20:24:37 UTC) #2
sky
http://codereview.chromium.org/8342049/diff/3001/chrome/browser/webdata/keyword_table.cc File chrome/browser/webdata/keyword_table.cc (right): http://codereview.chromium.org/8342049/diff/3001/chrome/browser/webdata/keyword_table.cc#newcode281 chrome/browser/webdata/keyword_table.cc:281: scoped_refptr<protector::DefaultSearchProviderChange> change( I don't like putting functionality like this ...
9 years, 2 months ago (2011-10-19 21:09:12 UTC) #3
whywhat
http://codereview.chromium.org/8342049/diff/1/chrome/browser/protector/protector.cc File chrome/browser/protector/protector.cc (right): http://codereview.chromium.org/8342049/diff/1/chrome/browser/protector/protector.cc#newcode22 chrome/browser/protector/protector.cc:22: DefaultSearchProviderChange::DefaultSearchProviderChange( On 2011/10/19 20:24:37, Ivan Korotkov wrote: > Please ...
9 years, 2 months ago (2011-10-20 20:50:04 UTC) #4
Ivan Korotkov
LGTM after sky's comment is resolved. http://codereview.chromium.org/8342049/diff/8001/chrome/browser/protector/protector.cc File chrome/browser/protector/protector.cc (right): http://codereview.chromium.org/8342049/diff/8001/chrome/browser/protector/protector.cc#newcode69 chrome/browser/protector/protector.cc:69: OnDiscardChanges(); This means ...
9 years, 2 months ago (2011-10-20 21:04:52 UTC) #5
whywhat
Scott, there're a couple of questions to you in the comments. Could you answer them, ...
9 years, 2 months ago (2011-10-20 23:02:39 UTC) #6
sky
Sorry, I didn't see your comments. http://codereview.chromium.org/8342049/diff/13001/chrome/browser/webdata/web_data_service.cc File chrome/browser/webdata/web_data_service.cc (right): http://codereview.chromium.org/8342049/diff/13001/chrome/browser/webdata/web_data_service.cc#newcode638 chrome/browser/webdata/web_data_service.cc:638: keyword_table->GetDefaultSearchProviderIDBackup()); On 2011/10/20 ...
9 years, 2 months ago (2011-10-20 23:40:59 UTC) #7
sky
http://codereview.chromium.org/8342049/diff/13001/chrome/browser/webdata/keyword_table.h File chrome/browser/webdata/keyword_table.h (right): http://codereview.chromium.org/8342049/diff/13001/chrome/browser/webdata/keyword_table.h#newcode83 chrome/browser/webdata/keyword_table.h:83: string16 GetKeywordShortName(int64 id); Don't add this either. Get all ...
9 years, 2 months ago (2011-10-20 23:57:31 UTC) #8
whywhat
http://codereview.chromium.org/8342049/diff/13001/chrome/browser/webdata/keyword_table.h File chrome/browser/webdata/keyword_table.h (right): http://codereview.chromium.org/8342049/diff/13001/chrome/browser/webdata/keyword_table.h#newcode83 chrome/browser/webdata/keyword_table.h:83: string16 GetKeywordShortName(int64 id); On 2011/10/20 23:57:31, sky wrote: > ...
9 years, 2 months ago (2011-10-21 16:48:18 UTC) #9
sky
http://codereview.chromium.org/8342049/diff/15001/chrome/browser/profiles/profile_impl.h File chrome/browser/profiles/profile_impl.h (right): http://codereview.chromium.org/8342049/diff/15001/chrome/browser/profiles/profile_impl.h#newcode298 chrome/browser/profiles/profile_impl.h:298: scoped_ptr<protector::Protector> protector_; You'll need to run this by Elliott. ...
9 years, 2 months ago (2011-10-21 17:20:30 UTC) #10
sky
One other comment. Could we always store the default search provider encrypted? That way we ...
9 years, 2 months ago (2011-10-21 17:59:29 UTC) #11
whywhat
On 2011/10/21 17:59:29, sky wrote: > One other comment. Could we always store the default ...
9 years, 2 months ago (2011-10-21 18:52:19 UTC) #12
sky
On Fri, Oct 21, 2011 at 11:52 AM, <avayvod@chromium.org> wrote: > On 2011/10/21 17:59:29, sky ...
9 years, 2 months ago (2011-10-21 19:18:21 UTC) #13
whywhat
http://codereview.chromium.org/8342049/diff/15001/chrome/browser/profiles/profile_impl.h File chrome/browser/profiles/profile_impl.h (right): http://codereview.chromium.org/8342049/diff/15001/chrome/browser/profiles/profile_impl.h#newcode298 chrome/browser/profiles/profile_impl.h:298: scoped_ptr<protector::Protector> protector_; On 2011/10/21 17:20:30, sky wrote: > You'll ...
9 years, 2 months ago (2011-10-21 20:31:53 UTC) #14
sky
http://codereview.chromium.org/8342049/diff/15001/chrome/browser/search_engines/util.cc File chrome/browser/search_engines/util.cc (right): http://codereview.chromium.org/8342049/diff/15001/chrome/browser/search_engines/util.cc#newcode218 chrome/browser/search_engines/util.cc:218: WDKeywordsResult keyword_result = reinterpret_cast< On 2011/10/21 20:31:53, whywhat wrote: ...
9 years, 2 months ago (2011-10-21 21:34:11 UTC) #15
whywhat
Please, take a look. Scott, could you also advise on the right way to trigger ...
9 years, 2 months ago (2011-10-24 15:30:17 UTC) #16
sky
On Mon, Oct 24, 2011 at 8:30 AM, <avayvod@chromium.org> wrote: > Please, take a look. ...
9 years, 2 months ago (2011-10-24 15:51:23 UTC) #17
whywhat
On 2011/10/24 15:51:23, sky wrote: > On Mon, Oct 24, 2011 at 8:30 AM, <mailto:avayvod@chromium.org> ...
9 years, 2 months ago (2011-10-24 16:49:24 UTC) #18
sky
On Mon, Oct 24, 2011 at 9:49 AM, <avayvod@chromium.org> wrote: > On 2011/10/24 15:51:23, sky ...
9 years, 2 months ago (2011-10-24 16:58:20 UTC) #19
whywhat
Done. I'll wait for your explicit approval before committing.
9 years, 2 months ago (2011-10-24 17:00:46 UTC) #20
sky
http://codereview.chromium.org/8342049/diff/22020/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): http://codereview.chromium.org/8342049/diff/22020/chrome/browser/search_engines/template_url_service.cc#newcode469 chrome/browser/search_engines/template_url_service.cc:469: if (!template_urls_.empty()) { change this to: return template_urls_.empty() ? ...
9 years, 2 months ago (2011-10-24 17:04:12 UTC) #21
sky
http://codereview.chromium.org/8342049/diff/22020/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): http://codereview.chromium.org/8342049/diff/22020/chrome/browser/search_engines/template_url_service.cc#newcode441 chrome/browser/search_engines/template_url_service.cc:441: // We must always persist the setting in the ...
9 years, 2 months ago (2011-10-24 17:23:21 UTC) #22
whywhat
http://codereview.chromium.org/8342049/diff/22020/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): http://codereview.chromium.org/8342049/diff/22020/chrome/browser/search_engines/template_url_service.cc#newcode441 chrome/browser/search_engines/template_url_service.cc:441: // We must always persist the setting in the ...
9 years, 2 months ago (2011-10-25 10:30:41 UTC) #23
sky
LGTM
9 years, 2 months ago (2011-10-25 14:52:15 UTC) #24
whywhat
9 years, 2 months ago (2011-10-25 21:42:19 UTC) #25
Thanks for thorough review! Will submit as soon as I'm sure interactive_ui_tests
fail not because of the change (it passes locally).

Powered by Google App Engine
This is Rietveld 408576698