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

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

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 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/google/google_url_tracker_factory.cc
diff --git a/chrome/browser/google/google_url_tracker_factory.cc b/chrome/browser/google/google_url_tracker_factory.cc
index f1590ec243260f5bf5e98ee1fce5ffbb2f8fc2f6..329e5c5e6dae66d856b579fb3697a1b4c4d24d5f 100644
--- a/chrome/browser/google/google_url_tracker_factory.cc
+++ b/chrome/browser/google/google_url_tracker_factory.cc
@@ -7,6 +7,7 @@
#include "base/prefs/pref_service.h"
#include "chrome/browser/google/google_url_tracker.h"
#include "chrome/browser/google/google_url_tracker_navigation_helper_impl.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/common/pref_names.h"
#include "components/user_prefs/pref_registry_syncable.h"
@@ -32,10 +33,10 @@ GoogleURLTrackerFactory::~GoogleURLTrackerFactory() {
}
ProfileKeyedService* GoogleURLTrackerFactory::BuildServiceInstanceFor(
- Profile* profile) const {
+ content::BrowserContext* profile) const {
scoped_ptr<GoogleURLTrackerNavigationHelper> nav_helper(
new GoogleURLTrackerNavigationHelperImpl());
- return new GoogleURLTracker(profile, nav_helper.Pass(),
+ return new GoogleURLTracker(static_cast<Profile*>(profile), nav_helper.Pass(),
GoogleURLTracker::NORMAL_MODE);
}
« no previous file with comments | « chrome/browser/google/google_url_tracker_factory.h ('k') | chrome/browser/google_apis/drive_notification_manager_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698