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

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

Issue 4694008: Make pink's TabContentsWrapper change compile on Windows.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
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"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/metrics/user_metrics.h" 12 #include "chrome/browser/metrics/user_metrics.h"
13 #include "chrome/browser/password_manager/password_form_manager.h" 13 #include "chrome/browser/password_manager/password_form_manager.h"
14 #include "chrome/browser/password_manager/password_manager_delegate.h" 14 #include "chrome/browser/password_manager/password_manager_delegate.h"
15 #include "chrome/browser/prefs/pref_service.h" 15 #include "chrome/browser/prefs/pref_service.h"
16 #include "chrome/browser/profile.h" 16 #include "chrome/browser/profile.h"
17 #include "chrome/common/notification_registrar.h" 17 #include "chrome/common/notification_registrar.h"
18 #include "chrome/common/notification_service.h" 18 #include "chrome/common/notification_service.h"
19 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
20 #include "chrome/common/render_messages_params.h"
20 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
21 22
22 using webkit_glue::PasswordForm; 23 using webkit_glue::PasswordForm;
23 using webkit_glue::PasswordFormMap; 24 using webkit_glue::PasswordFormMap;
24 25
25 // static 26 // static
26 void PasswordManager::RegisterUserPrefs(PrefService* prefs) { 27 void PasswordManager::RegisterUserPrefs(PrefService* prefs) {
27 prefs->RegisterBooleanPref(prefs::kPasswordManagerEnabled, true); 28 prefs->RegisterBooleanPref(prefs::kPasswordManagerEnabled, true);
28 prefs->RegisterBooleanPref(prefs::kPasswordManagerAllowShowPasswords, true); 29 prefs->RegisterBooleanPref(prefs::kPasswordManagerAllowShowPasswords, true);
29 } 30 }
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 return; 210 return;
210 } 211 }
211 default: 212 default:
212 if (observer_) { 213 if (observer_) {
213 observer_->OnAutofillDataAvailable( 214 observer_->OnAutofillDataAvailable(
214 UTF16ToWideHack(preferred_match->username_value), 215 UTF16ToWideHack(preferred_match->username_value),
215 UTF16ToWideHack(preferred_match->password_value)); 216 UTF16ToWideHack(preferred_match->password_value));
216 } 217 }
217 } 218 }
218 } 219 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698