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

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

Issue 26972003: Added a policy_switches.cc file in the policy component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_android.h" 5 #include "chrome/browser/policy/cloud/user_policy_signin_service_android.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/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/prefs/pref_service.h" 13 #include "base/prefs/pref_service.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "chrome/browser/policy/cloud/cloud_policy_client_registration_helper.h" 15 #include "chrome/browser/policy/cloud/cloud_policy_client_registration_helper.h"
16 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" 16 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h"
17 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" 17 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 19 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
20 #include "chrome/browser/signin/signin_manager.h" 20 #include "chrome/browser/signin/signin_manager.h"
21 #include "chrome/common/chrome_switches.h"
22 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
22 #include "components/policy/core/common/policy_switches.h"
23 #include "net/base/network_change_notifier.h" 23 #include "net/base/network_change_notifier.h"
24 #include "net/url_request/url_request_context_getter.h" 24 #include "net/url_request/url_request_context_getter.h"
25 25
26 namespace policy { 26 namespace policy {
27 27
28 namespace { 28 namespace {
29 29
30 enterprise_management::DeviceRegisterRequest::Type GetRegistrationType() { 30 enterprise_management::DeviceRegisterRequest::Type GetRegistrationType() {
31 CommandLine* command_line = CommandLine::ForCurrentProcess(); 31 CommandLine* command_line = CommandLine::ForCurrentProcess();
32 if (command_line->HasSwitch(switches::kFakeCloudPolicyType)) 32 if (command_line->HasSwitch(switches::kFakeCloudPolicyType))
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 void UserPolicySigninService::CancelPendingRegistration() { 166 void UserPolicySigninService::CancelPendingRegistration() {
167 weak_factory_.InvalidateWeakPtrs(); 167 weak_factory_.InvalidateWeakPtrs();
168 } 168 }
169 169
170 void UserPolicySigninService::OnRegistrationDone() { 170 void UserPolicySigninService::OnRegistrationDone() {
171 registration_helper_.reset(); 171 registration_helper_.reset();
172 } 172 }
173 173
174 } // namespace policy 174 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc ('k') | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698