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

Side by Side Diff: chrome/browser/ui/webui/signin/login_ui_service_factory.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" 5 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/prefs/pref_service.h"
10 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/webui/signin/login_ui_service.h" 10 #include "chrome/browser/ui/webui/signin/login_ui_service.h"
12 #include "components/keyed_service/content/browser_context_dependency_manager.h" 11 #include "components/keyed_service/content/browser_context_dependency_manager.h"
12 #include "components/prefs/pref_service.h"
13 #include "components/signin/core/browser/signin_manager.h" 13 #include "components/signin/core/browser/signin_manager.h"
14 14
15 LoginUIServiceFactory::LoginUIServiceFactory() 15 LoginUIServiceFactory::LoginUIServiceFactory()
16 : BrowserContextKeyedServiceFactory( 16 : BrowserContextKeyedServiceFactory(
17 "LoginUIServiceFactory", 17 "LoginUIServiceFactory",
18 BrowserContextDependencyManager::GetInstance()) { 18 BrowserContextDependencyManager::GetInstance()) {
19 } 19 }
20 20
21 LoginUIServiceFactory::~LoginUIServiceFactory() {} 21 LoginUIServiceFactory::~LoginUIServiceFactory() {}
22 22
(...skipping 13 matching lines...) Expand all
36 Profile* profile) { 36 Profile* profile) {
37 return base::Bind( 37 return base::Bind(
38 &LoginUIService::ShowLoginPopup, 38 &LoginUIService::ShowLoginPopup,
39 base::Unretained(LoginUIServiceFactory::GetForProfile(profile))); 39 base::Unretained(LoginUIServiceFactory::GetForProfile(profile)));
40 } 40 }
41 41
42 KeyedService* LoginUIServiceFactory::BuildServiceInstanceFor( 42 KeyedService* LoginUIServiceFactory::BuildServiceInstanceFor(
43 content::BrowserContext* profile) const { 43 content::BrowserContext* profile) const {
44 return new LoginUIService(static_cast<Profile*>(profile)); 44 return new LoginUIService(static_cast<Profile*>(profile));
45 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698