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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_constants.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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/cloud_policy_constants.h" 5 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "components/policy/core/common/policy_switches.h" 8 #include "components/policy/core/common/policy_switches.h"
9 9
10 namespace policy { 10 namespace policy {
11 11
12 // Constants related to the device management protocol. 12 // Constants related to the device management protocol.
13 namespace dm_protocol { 13 namespace dm_protocol {
14 14
15 // Name constants for URL query parameters. 15 // Name constants for URL query parameters.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 const char* GetChromeUserPolicyType() { 52 const char* GetChromeUserPolicyType() {
53 #if defined(OS_ANDROID) || defined(OS_IOS) 53 #if defined(OS_ANDROID) || defined(OS_IOS)
54 CommandLine* command_line = CommandLine::ForCurrentProcess(); 54 CommandLine* command_line = CommandLine::ForCurrentProcess();
55 if (command_line->HasSwitch(switches::kFakeCloudPolicyType)) 55 if (command_line->HasSwitch(switches::kFakeCloudPolicyType))
56 return "google/chrome/user"; 56 return "google/chrome/user";
57 #endif 57 #endif
58 return dm_protocol::kChromeUserPolicyType; 58 return dm_protocol::kChromeUserPolicyType;
59 } 59 }
60 60
61 } // namespace policy 61 } // namespace policy
OLDNEW
« no previous file with comments | « components/policy/core/common/cloud/cloud_policy_constants.h ('k') | components/policy/core/common/cloud/cloud_policy_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698