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

Side by Side Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 1028163002: Processing USERNAME reply from Autofill server in Password Manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small nit Created 5 years, 9 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 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/autofill/chrome_autofill_client.h" 5 #include "chrome/browser/ui/autofill/chrome_autofill_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/autofill/personal_data_manager_factory.h" 9 #include "chrome/browser/autofill/personal_data_manager_factory.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 void ChromeAutofillClient::WebContentsDestroyed() { 259 void ChromeAutofillClient::WebContentsDestroyed() {
260 HideAutofillPopup(); 260 HideAutofillPopup();
261 } 261 }
262 262
263 void ChromeAutofillClient::OnZoomChanged( 263 void ChromeAutofillClient::OnZoomChanged(
264 const ui_zoom::ZoomController::ZoomChangedEventData& data) { 264 const ui_zoom::ZoomController::ZoomChangedEventData& data) {
265 HideAutofillPopup(); 265 HideAutofillPopup();
266 } 266 }
267 267
268 void ChromeAutofillClient::DetectAccountCreationForms( 268 void ChromeAutofillClient::PropagateAutofillPredictions(
269 content::RenderFrameHost* rfh, 269 content::RenderFrameHost* rfh,
270 const std::vector<autofill::FormStructure*>& forms) { 270 const std::vector<autofill::FormStructure*>& forms) {
271 password_manager::ContentPasswordManagerDriver* driver = 271 password_manager::ContentPasswordManagerDriver* driver =
272 password_manager::ContentPasswordManagerDriver::GetForRenderFrameHost( 272 password_manager::ContentPasswordManagerDriver::GetForRenderFrameHost(
273 rfh); 273 rfh);
274 if (driver) 274 if (driver) {
275 driver->GetPasswordGenerationManager()->DetectAccountCreationForms(forms); 275 driver->GetPasswordGenerationManager()->DetectAccountCreationForms(forms);
276 driver->GetPasswordManager()->ProcessAutofillPredictions(driver, forms);
277 }
276 } 278 }
277 279
278 void ChromeAutofillClient::DidFillOrPreviewField( 280 void ChromeAutofillClient::DidFillOrPreviewField(
279 const base::string16& autofilled_value, 281 const base::string16& autofilled_value,
280 const base::string16& profile_full_name) { 282 const base::string16& profile_full_name) {
281 #if defined(OS_ANDROID) 283 #if defined(OS_ANDROID)
282 AutofillLoggerAndroid::DidFillOrPreviewField(autofilled_value, 284 AutofillLoggerAndroid::DidFillOrPreviewField(autofilled_value,
283 profile_full_name); 285 profile_full_name);
284 #endif // defined(OS_ANDROID) 286 #endif // defined(OS_ANDROID)
285 } 287 }
286 288
287 void ChromeAutofillClient::OnFirstUserGestureObserved() { 289 void ChromeAutofillClient::OnFirstUserGestureObserved() {
288 web_contents()->SendToAllFrames( 290 web_contents()->SendToAllFrames(
289 new AutofillMsg_FirstUserGestureObservedInTab(routing_id())); 291 new AutofillMsg_FirstUserGestureObservedInTab(routing_id()));
290 } 292 }
291 293
292 void ChromeAutofillClient::LinkClicked(const GURL& url, 294 void ChromeAutofillClient::LinkClicked(const GURL& url,
293 WindowOpenDisposition disposition) { 295 WindowOpenDisposition disposition) {
294 web_contents()->OpenURL(content::OpenURLParams( 296 web_contents()->OpenURL(content::OpenURLParams(
295 url, content::Referrer(), disposition, ui::PAGE_TRANSITION_LINK, false)); 297 url, content::Referrer(), disposition, ui::PAGE_TRANSITION_LINK, false));
296 } 298 }
297 299
298 } // namespace autofill 300 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698