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

Unified Diff: chrome/browser/ui/sync/one_click_signin_helper_unittest.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/ui/sync/one_click_signin_helper_unittest.cc
diff --git a/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc b/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
index 9cd644942bf7c7fe784c8fb33058acc08a087a16..f5a527373f1fe6f62bbb1fe21558cebcc557bf98 100644
--- a/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
+++ b/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
@@ -155,8 +155,8 @@ class OneClickTestProfileSyncService : public TestProfileSyncService {
// Helper routine to be used in conjunction with
// ProfileKeyedServiceFactory::SetTestingFactory().
- static ProfileKeyedService* Build(Profile* profile) {
- return new OneClickTestProfileSyncService(profile);
+ static ProfileKeyedService* Build(content::BrowserContext* profile) {
+ return new OneClickTestProfileSyncService(static_cast<Profile*>(profile));
}
// Need to control this for certain tests.
@@ -188,8 +188,9 @@ class OneClickTestProfileSyncService : public TestProfileSyncService {
bool first_setup_in_progress_;
};
-static ProfileKeyedService* BuildSigninManagerMock(Profile* profile) {
- return new SigninManagerMock(profile);
+static ProfileKeyedService* BuildSigninManagerMock(
+ content::BrowserContext* profile) {
+ return new SigninManagerMock(static_cast<Profile*>(profile));
}
} // namespace
« no previous file with comments | « chrome/browser/ui/global_error/global_error_service_factory.cc ('k') | chrome/browser/ui/tabs/pinned_tab_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698