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

Unified Diff: chrome/browser/chromeos/user_cros_settings_provider.h

Issue 8727037: Signed settings refactoring: Proper caching and more tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to ToT and removed some debug output left. Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/user_cros_settings_provider.h
diff --git a/chrome/browser/chromeos/user_cros_settings_provider.h b/chrome/browser/chromeos/user_cros_settings_provider.h
deleted file mode 100644
index 1bbb12fe57a0613ec09c304e8e95fc68c6e09f89..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/user_cros_settings_provider.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_
-#define CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_
-#pragma once
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "chrome/browser/chromeos/cros_settings_provider.h"
-#include "chrome/browser/chromeos/login/signed_settings_helper.h"
-
-class PrefService;
-
-namespace base {
-class ListValue;
-}
-
-namespace chromeos {
-
-// CrosSettingsProvider implementation that works with SignedSettings.
-// TODO(nkostylev): Rename this class to indicate that it is
-// SignedSettings specific.
-class UserCrosSettingsProvider : public CrosSettingsProvider {
- public:
- UserCrosSettingsProvider();
- virtual ~UserCrosSettingsProvider() {}
-
- // Registers cached users settings in preferences.
- static void RegisterPrefs(PrefService* local_state);
-
- // Reloads values from device settings.
- void Reload();
-
- // CrosSettingsProvider implementation.
- virtual const base::Value* Get(const std::string& path) const OVERRIDE;
- virtual bool GetTrusted(const std::string& path,
- const base::Closure& callback) const OVERRIDE;
- virtual bool HandlesSetting(const std::string& path) const OVERRIDE;
-
- private:
- // CrosSettingsProvider implementation.
- virtual void DoSet(const std::string& path,
- const base::Value& value) OVERRIDE;
-
- DISALLOW_COPY_AND_ASSIGN(UserCrosSettingsProvider);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698