| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/location.h" | 6 #include "base/location.h" |
| 7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
| 8 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "chrome/browser/chromeos/login/user_flow.h" | 9 #include "chrome/browser/chromeos/login/user_flow.h" |
| 10 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 10 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 DefaultUserFlow::~DefaultUserFlow() {} | 24 DefaultUserFlow::~DefaultUserFlow() {} |
| 25 | 25 |
| 26 void DefaultUserFlow::AppendAdditionalCommandLineSwitches() { | 26 void DefaultUserFlow::AppendAdditionalCommandLineSwitches() { |
| 27 } | 27 } |
| 28 | 28 |
| 29 bool DefaultUserFlow::CanLockScreen() { | 29 bool DefaultUserFlow::CanLockScreen() { |
| 30 return true; | 30 return true; |
| 31 } | 31 } |
| 32 | 32 |
| 33 bool DefaultUserFlow::CanStartArc() { |
| 34 return true; |
| 35 } |
| 36 |
| 33 bool DefaultUserFlow::ShouldShowSettings() { | 37 bool DefaultUserFlow::ShouldShowSettings() { |
| 34 return true; | 38 return true; |
| 35 } | 39 } |
| 36 | 40 |
| 37 bool DefaultUserFlow::ShouldShowNotificationTray() { | 41 bool DefaultUserFlow::ShouldShowNotificationTray() { |
| 38 return true; | 42 return true; |
| 39 } | 43 } |
| 40 | 44 |
| 41 bool DefaultUserFlow::ShouldLaunchBrowser() { | 45 bool DefaultUserFlow::ShouldLaunchBrowser() { |
| 42 return true; | 46 return true; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 93 } |
| 90 | 94 |
| 91 void ExtendedUserFlow::UnregisterFlowSoon() { | 95 void ExtendedUserFlow::UnregisterFlowSoon() { |
| 92 base::ThreadTaskRunnerHandle::Get()->PostTask( | 96 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 93 FROM_HERE, | 97 FROM_HERE, |
| 94 base::Bind(&ChromeUserManager::ResetUserFlow, | 98 base::Bind(&ChromeUserManager::ResetUserFlow, |
| 95 base::Unretained(ChromeUserManager::Get()), account_id())); | 99 base::Unretained(ChromeUserManager::Get()), account_id())); |
| 96 } | 100 } |
| 97 | 101 |
| 98 } // namespace chromeos | 102 } // namespace chromeos |
| OLD | NEW |