| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |