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

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

Issue 14362031: Move part of WizardController static code to StartupUtils (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fighting with whitespaces again Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/startup_utils.h
diff --git a/chrome/browser/chromeos/login/startup_utils.h b/chrome/browser/chromeos/login/startup_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..f87ce4f05a80b09de1acf885878edb46c13fcf04
--- /dev/null
+++ b/chrome/browser/chromeos/login/startup_utils.h
@@ -0,0 +1,48 @@
+// Copyright (c) 2012 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_STARTUP_UTILS_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_
+
+#include <string>
+
+class PrefRegistrySimple;
+
+namespace chromeos {
+
+// Static utitliy methods used in startup time to get/change bits of device
+// state.
+class StartupUtils {
+ public:
+ // Returns true if EULA has been accepted.
+ static bool IsEulaAccepted();
+
+ // Returns OOBE completion status.
+ static bool IsOobeCompleted();
+
+ // Marks EULA status as accepted.
+ static void MarkEulaAccepted();
+
+ // Marks OOBE process as completed.
+ static void MarkOobeCompleted();
+
+ // Returns device registration completion status, i.e. second part of OOBE.
+ static bool IsDeviceRegistered();
+
+ // Marks device registered. i.e. second part of OOBE is completed.
+ static void MarkDeviceRegistered();
+
+ // Returns initial locale from local settings.
+ static std::string GetInitialLocale();
+
+ // Sets initial locale in local settings.
+ static void SetInitialLocale(const std::string& locale);
+
+ // Registers OOBE preferences.
+ static void RegisterPrefs(PrefRegistrySimple* registry);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_
« no previous file with comments | « chrome/browser/chromeos/login/screens/update_screen.cc ('k') | chrome/browser/chromeos/login/startup_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698