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 "chrome/browser/chromeos/login/existing_user_controller.h" | 5 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #include "net/http/http_transaction_factory.h" | 59 #include "net/http/http_transaction_factory.h" |
60 #include "net/url_request/url_request_context.h" | 60 #include "net/url_request/url_request_context.h" |
61 #include "net/url_request/url_request_context_getter.h" | 61 #include "net/url_request/url_request_context_getter.h" |
62 #include "ui/base/l10n/l10n_util.h" | 62 #include "ui/base/l10n/l10n_util.h" |
63 #include "ui/views/widget/widget.h" | 63 #include "ui/views/widget/widget.h" |
64 | 64 |
65 namespace chromeos { | 65 namespace chromeos { |
66 | 66 |
67 namespace { | 67 namespace { |
68 | 68 |
69 // Major version where we still show GSG as "Release Notes" after the update. | |
70 const long int kReleaseNotesTargetRelease = 19; | |
71 | |
72 // URL for account creation. | 69 // URL for account creation. |
73 const char kCreateAccountURL[] = | 70 const char kCreateAccountURL[] = |
74 "https://accounts.google.com/NewAccount?service=mail"; | 71 "https://accounts.google.com/NewAccount?service=mail"; |
75 | 72 |
76 // ChromeVox tutorial URL (used in place of "getting started" url when | 73 // ChromeVox tutorial URL (used in place of "getting started" url when |
77 // accessibility is enabled). | 74 // accessibility is enabled). |
78 const char kChromeVoxTutorialURLPattern[] = | 75 const char kChromeVoxTutorialURLPattern[] = |
79 "http://www.chromevox.com/tutorial/index.html?lang=%s"; | 76 "http://www.chromevox.com/tutorial/index.html?lang=%s"; |
80 | 77 |
81 // Delay for transferring the auth cache to the system profile. | 78 // Delay for transferring the auth cache to the system profile. |
82 const long int kAuthCacheTransferDelayMs = 2000; | 79 const long int kAuthCacheTransferDelayMs = 2000; |
83 | 80 |
84 // Delay for restarting the ui if safe-mode login has failed. | 81 // Delay for restarting the ui if safe-mode login has failed. |
85 const long int kSafeModeRestartUiDelayMs = 30000; | 82 const long int kSafeModeRestartUiDelayMs = 30000; |
86 | 83 |
87 // Delay for rebooting machine if TPM critical error was encountered. | |
88 const long int kCriticalErrorRebootDelayMs = 3500; | |
89 | |
90 // Makes a call to the policy subsystem to reload the policy when we detect | 84 // Makes a call to the policy subsystem to reload the policy when we detect |
91 // authentication change. | 85 // authentication change. |
92 void RefreshPoliciesOnUIThread() { | 86 void RefreshPoliciesOnUIThread() { |
93 if (g_browser_process->policy_service()) | 87 if (g_browser_process->policy_service()) |
94 g_browser_process->policy_service()->RefreshPolicies(base::Closure()); | 88 g_browser_process->policy_service()->RefreshPolicies(base::Closure()); |
95 } | 89 } |
96 | 90 |
97 // Copies any authentication details that were entered in the login profile in | 91 // Copies any authentication details that were entered in the login profile in |
98 // the mail profile to make sure all subsystems of Chrome can access the network | 92 // the mail profile to make sure all subsystems of Chrome can access the network |
99 // with the provided authentication which are possibly for a proxy server. | 93 // with the provided authentication which are possibly for a proxy server. |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 // changed. | 1104 // changed. |
1111 UserManager::Get()->SaveUserOAuthStatus( | 1105 UserManager::Get()->SaveUserOAuthStatus( |
1112 username, | 1106 username, |
1113 User::OAUTH2_TOKEN_STATUS_INVALID); | 1107 User::OAUTH2_TOKEN_STATUS_INVALID); |
1114 | 1108 |
1115 login_display_->SetUIEnabled(true); | 1109 login_display_->SetUIEnabled(true); |
1116 login_display_->ShowGaiaPasswordChanged(username); | 1110 login_display_->ShowGaiaPasswordChanged(username); |
1117 } | 1111 } |
1118 | 1112 |
1119 } // namespace chromeos | 1113 } // namespace chromeos |
OLD | NEW |