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

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

Issue 118047: Reverting 17273 - Fails reliability tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/password_manager/password_manager.h ('k') | chrome/browser/profile.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/stl_util-inl.h" 9 #include "base/stl_util-inl.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "chrome/browser/password_manager/password_form_manager.h"
12 #include "chrome/browser/profile.h" 11 #include "chrome/browser/profile.h"
13 #include "chrome/browser/tab_contents/tab_contents.h" 12 #include "chrome/browser/tab_contents/tab_contents.h"
14 #include "chrome/common/notification_registrar.h" 13 #include "chrome/common/notification_registrar.h"
15 #include "chrome/common/notification_service.h" 14 #include "chrome/common/notification_service.h"
16 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
17 #include "chrome/common/pref_service.h" 16 #include "chrome/common/pref_service.h"
18 #include "grit/chromium_strings.h" 17 #include "grit/chromium_strings.h"
19 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
20 #include "grit/theme_resources.h" 19 #include "grit/theme_resources.h"
21 20
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 preferred_match->action.GetWithEmptyPath(); 227 preferred_match->action.GetWithEmptyPath();
229 PasswordFormDomManager::FillData fill_data; 228 PasswordFormDomManager::FillData fill_data;
230 PasswordFormDomManager::InitFillData(form_for_autofill, 229 PasswordFormDomManager::InitFillData(form_for_autofill,
231 best_matches, preferred_match, 230 best_matches, preferred_match,
232 action_mismatch, 231 action_mismatch,
233 &fill_data); 232 &fill_data);
234 tab_contents_->render_view_host()->FillPasswordForm(fill_data); 233 tab_contents_->render_view_host()->FillPasswordForm(fill_data);
235 return; 234 return;
236 } 235 }
237 default: 236 default:
238 if (observer_) { 237 if (observer_)
239 observer_->OnAutofillDataAvailable(preferred_match->username_value, 238 observer_->OnAutofillDataAvailable(preferred_match->username_value,
240 preferred_match->password_value); 239 preferred_match->password_value);
241 }
242 } 240 }
243 } 241 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_manager.h ('k') | chrome/browser/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698