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

Side by Side Diff: chrome/browser/policy/cloud/cloud_policy_constants.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 (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 "chrome/browser/policy/cloud/cloud_policy_constants.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_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.
16 const char kParamAgent[] = "agent"; 16 const char kParamAgent[] = "agent";
17 const char kParamAppType[] = "apptype"; 17 const char kParamAppType[] = "apptype";
18 const char kParamDeviceID[] = "deviceid"; 18 const char kParamDeviceID[] = "deviceid";
(...skipping 33 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 | « chrome/browser/policy/cloud/DEPS ('k') | chrome/browser/policy/cloud/cloud_policy_invalidator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698