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

Unified Diff: chrome/browser/chromeos/login/signed_settings_temp_storage.h

Issue 8727037: Signed settings refactoring: Proper caching and more tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Fixed small bugs. Rebased to ToT. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/signed_settings_temp_storage.h
diff --git a/chrome/browser/chromeos/login/signed_settings_temp_storage.h b/chrome/browser/chromeos/login/signed_settings_temp_storage.h
deleted file mode 100644
index 6633c99366f73a4a066fd1952ca69168c1d76614..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/signed_settings_temp_storage.h
+++ /dev/null
@@ -1,45 +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_LOGIN_SIGNED_SETTINGS_TEMP_STORAGE_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNED_SETTINGS_TEMP_STORAGE_H_
-#pragma once
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/values.h"
-
-class PrefService;
-
-namespace chromeos {
-
-// There is need (proxy settings at OOBE stage) to store settings
-// (that are normally go into SignedSettings storage)
-// before owner has been assigned (hence no key is available).
-// This class serves as a transient storage in that case.
-class SignedSettingsTempStorage {
- public:
- // Registers required pref section.
- static void RegisterPrefs(PrefService* local_state);
-
- static bool Store(const std::string& name,
- const base::Value& value,
- PrefService* local_state);
- static bool Retrieve(const std::string& name,
- base::Value** value,
- PrefService* local_state);
-
- // Call this after owner has been assigned to persist settings
- // into SignedSettings storage.
- static void Finalize(PrefService* local_state);
-
- private:
- SignedSettingsTempStorage() {}
- DISALLOW_COPY_AND_ASSIGN(SignedSettingsTempStorage);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNED_SETTINGS_TEMP_STORAGE_H_

Powered by Google App Engine
This is Rietveld 408576698