OLD | NEW |
(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 } |
OLD | NEW |