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

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

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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/enterprise_install_attributes.h" 5 #include "chrome/browser/policy/enterprise_install_attributes.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/chromeos/cros/cryptohome_library.h" 8 #include "chrome/browser/chromeos/cros/cryptohome_library.h"
9 #include "chrome/common/net/gaia/gaia_auth_util.h" 9 #include "google_apis/gaia/gaia_auth_util.h"
10 10
11 namespace policy { 11 namespace policy {
12 12
13 namespace { 13 namespace {
14 // Constants for the possible device modes that can be stored in the lockbox. 14 // Constants for the possible device modes that can be stored in the lockbox.
15 const char kConsumerDeviceMode[] = "consumer"; 15 const char kConsumerDeviceMode[] = "consumer";
16 const char kEnterpiseDeviceMode[] = "enterprise"; 16 const char kEnterpiseDeviceMode[] = "enterprise";
17 const char kKioskDeviceMode[] = "kiosk"; 17 const char kKioskDeviceMode[] = "kiosk";
18 const char kUnknownDeviceMode[] = "unknown"; 18 const char kUnknownDeviceMode[] = "unknown";
19 19
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 registration_mode_ = GetDeviceModeFromString(mode); 193 registration_mode_ = GetDeviceModeFromString(mode);
194 } else if (enterprise_user.empty() && enterprise_owned != "true") { 194 } else if (enterprise_user.empty() && enterprise_owned != "true") {
195 // |registration_user_| is empty on consumer devices. 195 // |registration_user_| is empty on consumer devices.
196 registration_mode_ = DEVICE_MODE_CONSUMER; 196 registration_mode_ = DEVICE_MODE_CONSUMER;
197 } 197 }
198 } 198 }
199 } 199 }
200 } 200 }
201 201
202 } // namespace policy 202 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/device_policy_cache.cc ('k') | chrome/browser/policy/user_cloud_policy_store_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698