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