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

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

Issue 9811022: Misc. small cleanups to minimize TemplateURL refactoring diffs: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/search_provider_install_data.cc
===================================================================
--- chrome/browser/search_engines/search_provider_install_data.cc (revision 128075)
+++ chrome/browser/search_engines/search_provider_install_data.cc (working copy)
@@ -13,6 +13,7 @@
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop_helpers.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/search_host_to_urls_map.h"
#include "chrome/browser/search_engines/search_terms_data.h"
#include "chrome/browser/search_engines/template_url.h"
@@ -153,10 +154,10 @@
} // namespace
SearchProviderInstallData::SearchProviderInstallData(
- WebDataService* web_service,
+ Profile* profile,
int ui_death_notification,
const content::NotificationSource& ui_death_source)
- : web_service_(web_service),
+ : web_service_(profile->GetWebDataService(Profile::EXPLICIT_ACCESS)),
load_handle_(0),
google_base_url_(UIThreadSearchTermsData().GoogleBaseURLValue()) {
// GoogleURLObserver is responsible for killing itself when

Powered by Google App Engine
This is Rietveld 408576698