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

Side by Side Diff: chrome/browser/ui/webui/options/password_manager_handler.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/webui/options/password_manager_handler.h" 5 #include "chrome/browser/ui/webui/options/password_manager_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/chrome_notification_types.h" 12 #include "chrome/browser/chrome_notification_types.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #if defined(OS_WIN) && defined(USE_ASH) 14 #if defined(OS_WIN) && defined(USE_ASH)
15 #include "chrome/browser/ui/ash/ash_util.h" 15 #include "chrome/browser/ui/ash/ash_util.h"
16 #endif 16 #endif
17 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
18 #include "chrome/common/url_constants.h" 18 #include "chrome/common/url_constants.h"
19 #include "components/autofill/core/common/password_form.h" 19 #include "components/autofill/core/common/password_form.h"
20 #include "content/public/browser/notification_details.h" 20 #include "content/public/browser/notification_details.h"
21 #include "content/public/browser/notification_source.h" 21 #include "content/public/browser/notification_source.h"
22 #include "content/public/browser/user_metrics.h" 22 #include "content/public/browser/user_metrics.h"
23 #include "content/public/browser/web_contents.h" 23 #include "content/public/browser/web_contents.h"
24 #include "content/public/browser/web_ui.h" 24 #include "content/public/browser/web_ui.h"
25 #include "grit/chromium_strings.h" 25 #include "grit/chromium_strings.h"
26 #include "grit/generated_resources.h" 26 #include "grit/generated_resources.h"
27 #include "net/base/net_util.h" 27 #include "net/base/net_util.h"
28 #include "ui/base/l10n/l10n_util.h"
29 28
30 namespace options { 29 namespace options {
31 30
32 PasswordManagerHandler::PasswordManagerHandler() 31 PasswordManagerHandler::PasswordManagerHandler()
33 : password_manager_presenter_(this) {} 32 : password_manager_presenter_(this) {}
34 33
35 PasswordManagerHandler::~PasswordManagerHandler() {} 34 PasswordManagerHandler::~PasswordManagerHandler() {}
36 35
37 Profile* PasswordManagerHandler::GetProfile() { 36 Profile* PasswordManagerHandler::GetProfile() {
38 return Profile::FromWebUI(web_ui()); 37 return Profile::FromWebUI(web_ui());
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 for (size_t i = 0; i < password_exception_list.size(); ++i) { 181 for (size_t i = 0; i < password_exception_list.size(); ++i) {
183 entries.Append(new base::StringValue( 182 entries.Append(new base::StringValue(
184 net::FormatUrl(password_exception_list[i]->origin, languages_))); 183 net::FormatUrl(password_exception_list[i]->origin, languages_)));
185 } 184 }
186 185
187 web_ui()->CallJavascriptFunction("PasswordManager.setPasswordExceptionsList", 186 web_ui()->CallJavascriptFunction("PasswordManager.setPasswordExceptionsList",
188 entries); 187 entries);
189 } 188 }
190 189
191 } // namespace options 190 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698