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

Unified Diff: chrome/browser/google/google_url_tracker.cc

Issue 10458077: When the Google base URL changes and causes keyword updates, save those to the database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « chrome/browser/google/google_url_tracker.h ('k') | chrome/browser/search_engines/search_host_to_urls_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google/google_url_tracker.cc
===================================================================
--- chrome/browser/google/google_url_tracker.cc (revision 140592)
+++ chrome/browser/google/google_url_tracker.cc (working copy)
@@ -227,6 +227,7 @@
void GoogleURLTracker::AcceptGoogleURL(const GURL& new_google_url,
bool redo_searches) {
+ UpdatedDetails urls(google_url_, new_google_url);
google_url_ = new_google_url;
PrefService* prefs = profile_->GetPrefs();
prefs->SetString(prefs::kLastKnownGoogleURL, google_url_.spec());
@@ -234,7 +235,7 @@
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_GOOGLE_URL_UPDATED,
content::Source<Profile>(profile_),
- content::Details<const GURL>(&new_google_url));
+ content::Details<UpdatedDetails>(&urls));
need_to_prompt_ = false;
CloseAllInfoBars(redo_searches);
}
« no previous file with comments | « chrome/browser/google/google_url_tracker.h ('k') | chrome/browser/search_engines/search_host_to_urls_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698