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

Side by Side Diff: chrome/browser/chromeos/user_cros_settings_provider.cc

Issue 8168010: PART4: Removed the owner cache special handling from UserCrosSettingsProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased on ToT which now includes all three previous parts. Created 9 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
« no previous file with comments | « chrome/browser/chromeos/user_cros_settings_provider.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/chromeos/user_cros_settings_provider.h" 5 #include "chrome/browser/chromeos/user_cros_settings_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 } 526 }
527 527
528 bool UserCrosSettingsProvider::HandlesSetting(const std::string& path) const { 528 bool UserCrosSettingsProvider::HandlesSetting(const std::string& path) const {
529 return ::StartsWithASCII(path, "cros.accounts.", true) || 529 return ::StartsWithASCII(path, "cros.accounts.", true) ||
530 ::StartsWithASCII(path, "cros.signed.", true) || 530 ::StartsWithASCII(path, "cros.signed.", true) ||
531 ::StartsWithASCII(path, "cros.metrics.", true) || 531 ::StartsWithASCII(path, "cros.metrics.", true) ||
532 path == kDeviceOwner || 532 path == kDeviceOwner ||
533 path == kReleaseChannel; 533 path == kReleaseChannel;
534 } 534 }
535 535
536 // static
537 void UserCrosSettingsProvider::UpdateCachedOwner(const std::string& email) {
538 base::StringValue email_value(email);
539 UpdateCache(kDeviceOwner, &email_value, USE_VALUE_SUPPLIED);
540 }
541
542 } // namespace chromeos 536 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/user_cros_settings_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698