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

Unified Diff: chrome/browser/chromeos/oobe/oobe.cc

Issue 941973003: New OOBE implementation skeleton using WUG toolkit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No explicit, gn format. Created 5 years, 10 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 | « chrome/browser/chromeos/oobe/oobe.h ('k') | chrome/browser/resources/chromeos/login/new/oobe.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/oobe/oobe.cc
diff --git a/chrome/browser/chromeos/oobe/oobe.cc b/chrome/browser/chromeos/oobe/oobe.cc
new file mode 100644
index 0000000000000000000000000000000000000000..bd980749ce3dd0c8e29936712df994e19e53e1eb
--- /dev/null
+++ b/chrome/browser/chromeos/oobe/oobe.cc
@@ -0,0 +1,34 @@
+// Copyright 2015 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.
+
+#include "base/prefs/pref_service.h"
+#include "chrome/browser/browser_process.h"
+#include "chrome/browser/chromeos/oobe/oobe.h"
+#include "chrome/browser/lifetime/application_lifetime.h"
+#include "chrome/common/pref_names.h"
+
+namespace chromeos {
+
+// static
+void Oobe::Register() {
+ gen::OobeViewModel::SetFactory(
+ [](content::BrowserContext* context)
+ -> gen::OobeViewModel* { return new Oobe(); });
+}
+
+Oobe::Oobe() {
+}
+
+Oobe::~Oobe() {
+}
+
+void Oobe::Initialize() {
+}
+
+void Oobe::OnButtonClicked() {
+ g_browser_process->local_state()->SetBoolean(prefs::kNewOobe, false);
+ chrome::AttemptRestart();
+}
+
+} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/oobe/oobe.h ('k') | chrome/browser/resources/chromeos/login/new/oobe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698