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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 const char kGetStartedBoardParam[] = "board"; | 76 const char kGetStartedBoardParam[] = "board"; |
77 | 77 |
78 // Parameter to be added to GetStarted URL | 78 // Parameter to be added to GetStarted URL |
79 // when first user signs in for the first time (OOBE case). | 79 // when first user signs in for the first time (OOBE case). |
80 const char kGetStartedOwnerParam[] = "owner"; | 80 const char kGetStartedOwnerParam[] = "owner"; |
81 const char kGetStartedOwnerParamValue[] = "true"; | 81 const char kGetStartedOwnerParamValue[] = "true"; |
82 const char kGetStartedInitialLocaleParam[] = "initial_locale"; | 82 const char kGetStartedInitialLocaleParam[] = "initial_locale"; |
83 | 83 |
84 // URL for account creation. | 84 // URL for account creation. |
85 const char kCreateAccountURL[] = | 85 const char kCreateAccountURL[] = |
86 "https://www.google.com/accounts/NewAccount?service=mail"; | 86 "https://accounts.google.com/NewAccount?service=mail"; |
87 | 87 |
88 // ChromeVox tutorial URL (used in place of "getting started" url when | 88 // ChromeVox tutorial URL (used in place of "getting started" url when |
89 // accessibility is enabled). | 89 // accessibility is enabled). |
90 const char kChromeVoxTutorialURLPattern[] = | 90 const char kChromeVoxTutorialURLPattern[] = |
91 "http://www.chromevox.com/tutorial/index.html?lang=%s"; | 91 "http://www.chromevox.com/tutorial/index.html?lang=%s"; |
92 | 92 |
93 // Delay for transferring the auth cache to the system profile. | 93 // Delay for transferring the auth cache to the system profile. |
94 const long int kAuthCacheTransferDelayMs = 2000; | 94 const long int kAuthCacheTransferDelayMs = 2000; |
95 | 95 |
96 // Delay for restarting the ui if safe-mode login has failed. | 96 // Delay for restarting the ui if safe-mode login has failed. |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 // Invalidate OAuth token, since it can't be correct after password is | 858 // Invalidate OAuth token, since it can't be correct after password is |
859 // changed. | 859 // changed. |
860 UserManager::Get()->SaveUserOAuthStatus(username, | 860 UserManager::Get()->SaveUserOAuthStatus(username, |
861 User::OAUTH_TOKEN_STATUS_INVALID); | 861 User::OAUTH_TOKEN_STATUS_INVALID); |
862 | 862 |
863 login_display_->SetUIEnabled(true); | 863 login_display_->SetUIEnabled(true); |
864 login_display_->ShowGaiaPasswordChanged(username); | 864 login_display_->ShowGaiaPasswordChanged(username); |
865 } | 865 } |
866 | 866 |
867 } // namespace chromeos | 867 } // namespace chromeos |
OLD | NEW |