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

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

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, add chrome/browser/chromeos/policy/OWNERS Created 7 years, 9 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/chromeos/policy/enterprise_install_attributes.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "chrome/browser/chromeos/cros/cryptohome_library.h" 11 #include "chrome/browser/chromeos/cros/cryptohome_library.h"
12 #include "chrome/browser/policy/proto/install_attributes.pb.h" 12 #include "chrome/browser/policy/proto/install_attributes.pb.h"
13 #include "google_apis/gaia/gaia_auth_util.h" 13 #include "google_apis/gaia/gaia_auth_util.h"
14 14
15 namespace policy { 15 namespace policy {
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 std::string mode; 263 std::string mode;
264 if (ReadMapKey(attr_map, kAttrEnterpriseMode, &mode)) 264 if (ReadMapKey(attr_map, kAttrEnterpriseMode, &mode))
265 registration_mode_ = GetDeviceModeFromString(mode); 265 registration_mode_ = GetDeviceModeFromString(mode);
266 } else if (enterprise_user.empty() && enterprise_owned != "true") { 266 } else if (enterprise_user.empty() && enterprise_owned != "true") {
267 // |registration_user_| is empty on consumer devices. 267 // |registration_user_| is empty on consumer devices.
268 registration_mode_ = DEVICE_MODE_CONSUMER; 268 registration_mode_ = DEVICE_MODE_CONSUMER;
269 } 269 }
270 } 270 }
271 271
272 } // namespace policy 272 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698