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

Side by Side Diff: chrome/browser/policy/chrome_browser_policy_connector.cc

Issue 131023004: Moved the --device-management-url switch to the policy component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@BPC-1-split
Patch Set: rebase Created 6 years, 11 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/chrome_browser_policy_connector.h" 5 #include "chrome/browser/policy/chrome_browser_policy_connector.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "base/strings/sys_string_conversions.h" 15 #include "base/strings/sys_string_conversions.h"
16 #include "base/sys_info.h" 16 #include "base/sys_info.h"
17 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h" 17 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h"
18 #include "chrome/common/chrome_paths.h" 18 #include "chrome/common/chrome_paths.h"
19 #include "chrome/common/chrome_switches.h"
20 #include "chrome/common/chrome_version_info.h" 19 #include "chrome/common/chrome_version_info.h"
21 #include "components/policy/core/common/async_policy_provider.h" 20 #include "components/policy/core/common/async_policy_provider.h"
22 #include "components/policy/core/common/cloud/device_management_service.h" 21 #include "components/policy/core/common/cloud/device_management_service.h"
23 #include "components/policy/core/common/configuration_policy_provider.h" 22 #include "components/policy/core/common/configuration_policy_provider.h"
23 #include "components/policy/core/common/policy_switches.h"
24 #include "components/policy/core/common/policy_types.h" 24 #include "components/policy/core/common/policy_types.h"
25 #include "content/public/browser/browser_thread.h" 25 #include "content/public/browser/browser_thread.h"
26 #include "net/url_request/url_request_context_getter.h" 26 #include "net/url_request/url_request_context_getter.h"
27 #include "policy/policy_constants.h" 27 #include "policy/policy_constants.h"
28 28
29 #if defined(OS_WIN) 29 #if defined(OS_WIN)
30 #include "components/policy/core/common/policy_loader_win.h" 30 #include "components/policy/core/common/policy_loader_win.h"
31 #elif defined(OS_MACOSX) 31 #elif defined(OS_MACOSX)
32 #include <CoreFoundation/CoreFoundation.h> 32 #include <CoreFoundation/CoreFoundation.h>
33 #include "components/policy/core/common/policy_loader_mac.h" 33 #include "components/policy/core/common/policy_loader_mac.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 return new AsyncPolicyProvider(GetSchemaRegistry(), loader.Pass()); 188 return new AsyncPolicyProvider(GetSchemaRegistry(), loader.Pass());
189 } else { 189 } else {
190 return NULL; 190 return NULL;
191 } 191 }
192 #else 192 #else
193 return NULL; 193 return NULL;
194 #endif 194 #endif
195 } 195 }
196 196
197 } // namespace policy 197 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698