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

Side by Side 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: Fix owners. Created 5 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/prefs/pref_service.h"
6 #include "chrome/browser/browser_process.h"
7 #include "chrome/browser/chromeos/oobe/oobe.h"
8 #include "chrome/browser/lifetime/application_lifetime.h"
9 #include "chrome/common/pref_names.h"
10
11 // static
12 void Oobe::Register() {
13 gen::OobeViewModel::SetFactory(
14 [](content::BrowserContext* context)
15 -> gen::OobeViewModel* { return new Oobe(); });
16 }
17
18 Oobe::Oobe() {
19 }
20
21 Oobe::~Oobe() {
22 }
23
24 void Oobe::Initialize() {
25 }
26
27 void Oobe::OnButtonClicked() {
28 g_browser_process->local_state()->SetBoolean(prefs::kNewOobe, false);
29 chrome::AttemptRestart();
30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698