OLD | NEW |
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/passwords/manage_passwords_bubble_model.h" | 5 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" |
6 | 6 |
7 #include "base/strings/string_split.h" | 7 #include "base/strings/string_split.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "chrome/browser/password_manager/password_store_factory.h" | 9 #include "chrome/browser/password_manager/password_store_factory.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/browser/ui/browser_finder.h" | 11 #include "chrome/browser/ui/browser_finder.h" |
12 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" | 12 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" |
| 13 #include "chrome/grit/generated_resources.h" |
13 #include "components/password_manager/core/browser/password_store.h" | 14 #include "components/password_manager/core/browser/password_store.h" |
14 #include "components/password_manager/core/common/password_manager_ui.h" | 15 #include "components/password_manager/core/common/password_manager_ui.h" |
15 #include "grit/generated_resources.h" | |
16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
17 #include "ui/base/resource/resource_bundle.h" | 17 #include "ui/base/resource/resource_bundle.h" |
18 | 18 |
19 using autofill::PasswordFormMap; | 19 using autofill::PasswordFormMap; |
20 using content::WebContents; | 20 using content::WebContents; |
21 namespace metrics_util = password_manager::metrics_util; | 21 namespace metrics_util = password_manager::metrics_util; |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 enum FieldType { USERNAME_FIELD, PASSWORD_FIELD }; | 25 enum FieldType { USERNAME_FIELD, PASSWORD_FIELD }; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 196 |
197 // static | 197 // static |
198 int ManagePasswordsBubbleModel::UsernameFieldWidth() { | 198 int ManagePasswordsBubbleModel::UsernameFieldWidth() { |
199 return GetFieldWidth(USERNAME_FIELD); | 199 return GetFieldWidth(USERNAME_FIELD); |
200 } | 200 } |
201 | 201 |
202 // static | 202 // static |
203 int ManagePasswordsBubbleModel::PasswordFieldWidth() { | 203 int ManagePasswordsBubbleModel::PasswordFieldWidth() { |
204 return GetFieldWidth(PASSWORD_FIELD); | 204 return GetFieldWidth(PASSWORD_FIELD); |
205 } | 205 } |
OLD | NEW |