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

Unified Diff: chrome/browser/search_engines/template_url_service_test_util.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
Index: chrome/browser/search_engines/template_url_service_test_util.cc
===================================================================
--- chrome/browser/search_engines/template_url_service_test_util.cc (revision 140592)
+++ chrome/browser/search_engines/template_url_service_test_util.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/scoped_temp_dir.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
+#include "chrome/browser/google/google_url_tracker.h"
#include "chrome/browser/search_engines/search_terms_data.h"
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
@@ -244,11 +245,14 @@
void TemplateURLServiceTestUtil::SetGoogleBaseURL(const GURL& base_url) const {
DCHECK(base_url.is_valid());
+ UIThreadSearchTermsData data(profile_.get());
+ GoogleURLTracker::UpdatedDetails urls(GURL(data.GoogleBaseURLValue()),
+ base_url);
UIThreadSearchTermsData::SetGoogleBaseURL(base_url.spec());
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_GOOGLE_URL_UPDATED,
content::Source<Profile>(profile_.get()),
- content::Details<const GURL>(&base_url));
+ content::Details<GoogleURLTracker::UpdatedDetails>(&urls));
}
void TemplateURLServiceTestUtil::SetManagedDefaultSearchPreferences(

Powered by Google App Engine
This is Rietveld 408576698