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

Side by Side Diff: chrome/browser/policy/cloud/user_policy_signin_service.cc

Issue 18644007: Update some includes of chrome_notification_types.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix deps Created 7 years, 5 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 | Annotate | Revision Log
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/policy/cloud/user_policy_signin_service.h" 5 #include "chrome/browser/policy/cloud/user_policy_signin_service.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/callback.h" 9 #include "base/callback.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/chrome_notification_types.h"
12 #include "chrome/browser/policy/cloud/cloud_policy_client_registration_helper.h" 13 #include "chrome/browser/policy/cloud/cloud_policy_client_registration_helper.h"
13 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" 14 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h"
14 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/profiles/profile_manager.h" 16 #include "chrome/browser/profiles/profile_manager.h"
16 #include "chrome/browser/signin/signin_manager.h" 17 #include "chrome/browser/signin/signin_manager.h"
17 #include "chrome/browser/signin/signin_manager_factory.h" 18 #include "chrome/browser/signin/signin_manager_factory.h"
18 #include "chrome/browser/signin/token_service.h" 19 #include "chrome/browser/signin/token_service.h"
19 #include "chrome/browser/signin/token_service_factory.h" 20 #include "chrome/browser/signin/token_service_factory.h"
20 #include "chrome/common/chrome_notification_types.h"
21 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
22 #include "content/public/browser/notification_details.h" 22 #include "content/public/browser/notification_details.h"
23 #include "google_apis/gaia/gaia_constants.h" 23 #include "google_apis/gaia/gaia_constants.h"
24 24
25 #if defined(ENABLE_MANAGED_USERS) 25 #if defined(ENABLE_MANAGED_USERS)
26 #include "chrome/browser/managed_mode/managed_user_service.h" 26 #include "chrome/browser/managed_mode/managed_user_service.h"
27 #endif 27 #endif
28 28
29 namespace policy { 29 namespace policy {
30 30
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 void UserPolicySigninService::ProhibitSignoutIfNeeded() { 224 void UserPolicySigninService::ProhibitSignoutIfNeeded() {
225 if (GetManager()->IsClientRegistered()) { 225 if (GetManager()->IsClientRegistered()) {
226 DVLOG(1) << "User is registered for policy - prohibiting signout"; 226 DVLOG(1) << "User is registered for policy - prohibiting signout";
227 SigninManager* signin_manager = 227 SigninManager* signin_manager =
228 SigninManagerFactory::GetForProfile(profile()); 228 SigninManagerFactory::GetForProfile(profile());
229 signin_manager->ProhibitSignout(true); 229 signin_manager->ProhibitSignout(true);
230 } 230 }
231 } 231 }
232 232
233 } // namespace policy 233 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698