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

Unified Diff: components/login/screens/screen_context.h

Issue 672203003: ScreenContext is moved to components/login. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/login/login_export.h ('k') | components/login/screens/screen_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/login/screens/screen_context.h
diff --git a/chrome/browser/chromeos/login/screens/screen_context.h b/components/login/screens/screen_context.h
similarity index 91%
rename from chrome/browser/chromeos/login/screens/screen_context.h
rename to components/login/screens/screen_context.h
index 317d1737d6645439a688336db7672a5e1f3cd521..6de612fbe1bd0b3e8d2c1d3ba029983f0d7055e2 100644
--- a/chrome/browser/chromeos/login/screens/screen_context.h
+++ b/components/login/screens/screen_context.h
@@ -2,8 +2,8 @@
// 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_SCREENS_SCREEN_CONTEXT_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_CONTEXT_H_
+#ifndef COMPONENTS_LOGIN_SCREENS_SCREEN_CONTEXT_H_
+#define COMPONENTS_LOGIN_SCREENS_SCREEN_CONTEXT_H_
#include <string>
#include <vector>
@@ -15,9 +15,10 @@
#include "base/strings/string16.h"
#include "base/threading/non_thread_safe.h"
#include "base/values.h"
-#include "chrome/browser/ui/webui/chromeos/login/base_screen_handler_utils.h"
+#include "components/login/base_screen_handler_utils.h"
+#include "components/login/login_export.h"
-namespace chromeos {
+namespace login {
// ScreenContext is a key-value storage for values that are shared
// between C++ and JS sides. Objects of this class should be used in
@@ -32,7 +33,7 @@ namespace chromeos {
// ScreenContext memorizes changed key-value pairs and returns them
// via GetChangesAndReset() method. After call to this method an
// internal buffer of changes will be cleared.
-class ScreenContext : public base::NonThreadSafe {
+class LOGIN_EXPORT ScreenContext : public base::NonThreadSafe {
public:
typedef std::string KeyType;
typedef base::Value ValueType;
@@ -121,6 +122,6 @@ class ScreenContext : public base::NonThreadSafe {
DISALLOW_COPY_AND_ASSIGN(ScreenContext);
};
-} // namespace chromeos
+} // namespace login
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_CONTEXT_H_
+#endif // COMPONENTS_LOGIN_SCREENS_SCREEN_CONTEXT_H_
« no previous file with comments | « components/login/login_export.h ('k') | components/login/screens/screen_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698