| 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 16 matching lines...) Expand all Loading... |
| 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() { | 33 bool DefaultUserFlow::CanStartArc() { |
| 34 return true; | 34 return true; |
| 35 } | 35 } |
| 36 | 36 |
| 37 bool DefaultUserFlow::ShouldShowSettings() { | 37 bool DefaultUserFlow::ShouldEnableSettings() { |
| 38 return true; | 38 return true; |
| 39 } | 39 } |
| 40 | 40 |
| 41 bool DefaultUserFlow::ShouldShowNotificationTray() { | 41 bool DefaultUserFlow::ShouldShowNotificationTray() { |
| 42 return true; | 42 return true; |
| 43 } | 43 } |
| 44 | 44 |
| 45 bool DefaultUserFlow::ShouldLaunchBrowser() { | 45 bool DefaultUserFlow::ShouldLaunchBrowser() { |
| 46 return true; | 46 return true; |
| 47 } | 47 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 73 | 73 |
| 74 ExtendedUserFlow::ExtendedUserFlow(const AccountId& account_id) | 74 ExtendedUserFlow::ExtendedUserFlow(const AccountId& account_id) |
| 75 : account_id_(account_id) {} | 75 : account_id_(account_id) {} |
| 76 | 76 |
| 77 ExtendedUserFlow::~ExtendedUserFlow() { | 77 ExtendedUserFlow::~ExtendedUserFlow() { |
| 78 } | 78 } |
| 79 | 79 |
| 80 void ExtendedUserFlow::AppendAdditionalCommandLineSwitches() { | 80 void ExtendedUserFlow::AppendAdditionalCommandLineSwitches() { |
| 81 } | 81 } |
| 82 | 82 |
| 83 bool ExtendedUserFlow::ShouldShowSettings() { | 83 bool ExtendedUserFlow::ShouldEnableSettings() { |
| 84 return true; | 84 return true; |
| 85 } | 85 } |
| 86 | 86 |
| 87 bool ExtendedUserFlow::ShouldShowNotificationTray() { | 87 bool ExtendedUserFlow::ShouldShowNotificationTray() { |
| 88 return true; | 88 return true; |
| 89 } | 89 } |
| 90 | 90 |
| 91 void ExtendedUserFlow::HandleOAuthTokenStatusChange( | 91 void ExtendedUserFlow::HandleOAuthTokenStatusChange( |
| 92 user_manager::User::OAuthTokenStatus status) { | 92 user_manager::User::OAuthTokenStatus status) { |
| 93 } | 93 } |
| 94 | 94 |
| 95 void ExtendedUserFlow::UnregisterFlowSoon() { | 95 void ExtendedUserFlow::UnregisterFlowSoon() { |
| 96 base::ThreadTaskRunnerHandle::Get()->PostTask( | 96 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 97 FROM_HERE, | 97 FROM_HERE, |
| 98 base::Bind(&ChromeUserManager::ResetUserFlow, | 98 base::Bind(&ChromeUserManager::ResetUserFlow, |
| 99 base::Unretained(ChromeUserManager::Get()), account_id())); | 99 base::Unretained(ChromeUserManager::Get()), account_id())); |
| 100 } | 100 } |
| 101 | 101 |
| 102 } // namespace chromeos | 102 } // namespace chromeos |
| OLD | NEW |