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