OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/views/profiles/user_manager_view.h" | 5 #include "chrome/browser/ui/views/profiles/user_manager_view.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/lifetime/application_lifetime.h" | 10 #include "chrome/browser/lifetime/application_lifetime.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 : UserManager::ReauthDialogObserver( | 91 : UserManager::ReauthDialogObserver( |
92 web_view->GetWebContents(), email_address), | 92 web_view->GetWebContents(), email_address), |
93 web_view_(web_view), | 93 web_view_(web_view), |
94 email_address_(email_address) { | 94 email_address_(email_address) { |
95 AddChildView(web_view_); | 95 AddChildView(web_view_); |
96 SetLayoutManager(new views::FillLayout()); | 96 SetLayoutManager(new views::FillLayout()); |
97 | 97 |
98 // Load the re-auth URL, prepopulated with the user's email address. | 98 // Load the re-auth URL, prepopulated with the user's email address. |
99 // Add the index of the profile to the URL so that the inline login page | 99 // Add the index of the profile to the URL so that the inline login page |
100 // knows which profile to load and update the credentials. | 100 // knows which profile to load and update the credentials. |
101 GURL url = signin::GetReauthURLWithEmail(email_address_); | 101 GURL url = signin::GetReauthURLWithEmail( |
102 signin_metrics::ACCESS_POINT_USER_MANAGER, signin_metrics::REASON_UNLOCK, | |
sky
2015/12/03 22:45:28
Isn't this reauth?
gogerald1
2015/12/04 20:49:09
Here we unlocking the profile, the unlock process
| |
103 email_address_); | |
102 web_view_->LoadInitialURL(url); | 104 web_view_->LoadInitialURL(url); |
103 } | 105 } |
104 | 106 |
105 gfx::Size ReauthDelegate::GetPreferredSize() const { | 107 gfx::Size ReauthDelegate::GetPreferredSize() const { |
106 return gfx::Size(UserManager::kReauthDialogWidth, | 108 return gfx::Size(UserManager::kReauthDialogWidth, |
107 UserManager::kReauthDialogHeight); | 109 UserManager::kReauthDialogHeight); |
108 } | 110 } |
109 | 111 |
110 bool ReauthDelegate::CanResize() const { | 112 bool ReauthDelegate::CanResize() const { |
111 return true; | 113 return true; |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
372 // Now that the window is closed, we can allow a new one to be opened. | 374 // Now that the window is closed, we can allow a new one to be opened. |
373 // (WindowClosing comes in asynchronously from the call to Close() and we | 375 // (WindowClosing comes in asynchronously from the call to Close() and we |
374 // may have already opened a new instance). | 376 // may have already opened a new instance). |
375 if (instance_ == this) | 377 if (instance_ == this) |
376 instance_ = NULL; | 378 instance_ = NULL; |
377 } | 379 } |
378 | 380 |
379 bool UserManagerView::UseNewStyleForThisDialog() const { | 381 bool UserManagerView::UseNewStyleForThisDialog() const { |
380 return false; | 382 return false; |
381 } | 383 } |
OLD | NEW |