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

Side by Side Diff: chrome/browser/chromeos/oobe/oobe.cc

Issue 1181703008: Removed webui_generator and new OOBE UI placeholder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed empty line. Created 5 years, 6 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 namespace chromeos {
12
13 // static
14 void Oobe::Register() {
15 gen::OobeViewModel::SetFactory(
16 [](content::BrowserContext* context)
17 -> gen::OobeViewModel* { return new Oobe(); });
18 }
19
20 Oobe::Oobe() {
21 }
22
23 Oobe::~Oobe() {
24 }
25
26 void Oobe::Initialize() {
27 }
28
29 void Oobe::OnButtonClicked() {
30 g_browser_process->local_state()->SetBoolean(prefs::kNewOobe, false);
31 chrome::AttemptRestart();
32 }
33
34 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/oobe/oobe.h ('k') | chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698