Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: chrome/browser/password_manager/password_manager.cc

Issue 3461019: FBTF: Move virtual methods to implementation files. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Win+chromeos+mac fixes Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/password_manager/password_manager.h" 5 #include "chrome/browser/password_manager/password_manager.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/platform_thread.h" 9 #include "base/platform_thread.h"
10 #include "base/stl_util-inl.h" 10 #include "base/stl_util-inl.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // As long as this navigation isn't due to a currently pending 115 // As long as this navigation isn't due to a currently pending
116 // password form submit, we're ready to reset and move on. 116 // password form submit, we're ready to reset and move on.
117 if (!provisional_save_manager_.get() && !pending_login_managers_.empty()) 117 if (!provisional_save_manager_.get() && !pending_login_managers_.empty())
118 STLDeleteElements(&pending_login_managers_); 118 STLDeleteElements(&pending_login_managers_);
119 } 119 }
120 120
121 void PasswordManager::ClearProvisionalSave() { 121 void PasswordManager::ClearProvisionalSave() {
122 provisional_save_manager_.reset(); 122 provisional_save_manager_.reset();
123 } 123 }
124 124
125 void PasswordManager::SetObserver(LoginModelObserver* observer) {
126 observer_ = observer;
127 }
128
125 void PasswordManager::DidStopLoading() { 129 void PasswordManager::DidStopLoading() {
126 if (!provisional_save_manager_.get()) 130 if (!provisional_save_manager_.get())
127 return; 131 return;
128 132
129 DCHECK(!delegate_->GetProfileForPasswordManager()->IsOffTheRecord()); 133 DCHECK(!delegate_->GetProfileForPasswordManager()->IsOffTheRecord());
130 DCHECK(!provisional_save_manager_->IsBlacklisted()); 134 DCHECK(!provisional_save_manager_->IsBlacklisted());
131 135
132 if (!delegate_->GetProfileForPasswordManager()) 136 if (!delegate_->GetProfileForPasswordManager())
133 return; 137 return;
134 // Form is not completely valid - we do not support it. 138 // Form is not completely valid - we do not support it.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 return; 209 return;
206 } 210 }
207 default: 211 default:
208 if (observer_) { 212 if (observer_) {
209 observer_->OnAutofillDataAvailable( 213 observer_->OnAutofillDataAvailable(
210 UTF16ToWideHack(preferred_match->username_value), 214 UTF16ToWideHack(preferred_match->username_value),
211 UTF16ToWideHack(preferred_match->password_value)); 215 UTF16ToWideHack(preferred_match->password_value));
212 } 216 }
213 } 217 }
214 } 218 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698