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

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: Nits. 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
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..14e913d5a86d3e2185be21ebf20d713cedfefd37
--- /dev/null
+++ b/chrome/browser/chromeos/oobe/oobe.cc
@@ -0,0 +1,30 @@
+// 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"
+
+// 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();
+}

Powered by Google App Engine
This is Rietveld 408576698