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

Unified Diff: chrome/browser/search_engines/template_url_service.cc

Issue 10066013: [protector] Homepage UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added pyauto tests. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search_engines/template_url_service.cc
diff --git a/chrome/browser/search_engines/template_url_service.cc b/chrome/browser/search_engines/template_url_service.cc
index c23b18915b815a3561d6dc9ef29afe2faa38727d..8ed6eda7209c180d5257ff2e1848fad01d8fd53d 100644
--- a/chrome/browser/search_engines/template_url_service.cc
+++ b/chrome/browser/search_engines/template_url_service.cc
@@ -672,7 +672,7 @@ void TemplateURLService::OnWebDataServiceRequestDone(
protector::ProtectorServiceFactory::GetForProfile(profile());
DCHECK(protector_service);
protector_service->ShowChange(change.release());
- } else {
+ } else if (service_.get()) {
sky 2012/04/16 21:07:43 Remove this.
Ivan Korotkov 2012/04/17 09:54:10 Oops, removed.
// Protector is turned off: set the current default search to itself
// to update the backup and sign it. Otherwise, change will be reported
// every time when keywords are loaded until a search provider is added.

Powered by Google App Engine
This is Rietveld 408576698