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

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: Created 9 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) 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 <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 9
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 } 555 }
556 556
557 bool UserCrosSettingsProvider::HandlesSetting(const std::string& path) const { 557 bool UserCrosSettingsProvider::HandlesSetting(const std::string& path) const {
558 return ::StartsWithASCII(path, "cros.accounts.", true) || 558 return ::StartsWithASCII(path, "cros.accounts.", true) ||
559 ::StartsWithASCII(path, "cros.signed.", true) || 559 ::StartsWithASCII(path, "cros.signed.", true) ||
560 ::StartsWithASCII(path, "cros.metrics.", true) || 560 ::StartsWithASCII(path, "cros.metrics.", true) ||
561 path == kDeviceOwner || 561 path == kDeviceOwner ||
562 path == kReleaseChannel; 562 path == kReleaseChannel;
563 } 563 }
564 564
565 // static
566 void UserCrosSettingsProvider::UpdateCachedOwner(const std::string& email) {
567 base::StringValue email_value(email);
568 UpdateCache(kDeviceOwner, email_value, USE_VALUE_SUPPLIED);
569 }
570
571 } // namespace chromeos 565 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698