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/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.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/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_finder.h" | 12 #include "chrome/browser/ui/browser_finder.h" |
13 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" | 13 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" |
14 #include "chrome/browser/ui/passwords/password_bubble_experiment.h" | 14 #include "chrome/browser/ui/passwords/password_bubble_experiment.h" |
| 15 #include "chrome/grit/chromium_strings.h" |
15 #include "chrome/grit/generated_resources.h" | 16 #include "chrome/grit/generated_resources.h" |
16 #include "components/feedback/feedback_data.h" | 17 #include "components/feedback/feedback_data.h" |
17 #include "components/feedback/feedback_util.h" | 18 #include "components/feedback/feedback_util.h" |
18 #include "components/password_manager/core/browser/password_store.h" | 19 #include "components/password_manager/core/browser/password_store.h" |
19 #include "components/password_manager/core/common/credential_manager_types.h" | 20 #include "components/password_manager/core/common/credential_manager_types.h" |
20 #include "components/password_manager/core/common/password_manager_ui.h" | 21 #include "components/password_manager/core/common/password_manager_ui.h" |
21 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
22 #include "content/public/common/content_switches.h" | 23 #include "content/public/common/content_switches.h" |
23 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
24 #include "ui/base/resource/resource_bundle.h" | 25 #include "ui/base/resource/resource_bundle.h" |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 ManagePasswordsBubbleModel::PendingStateTitleBasedOnSavePasswordPref() const { | 304 ManagePasswordsBubbleModel::PendingStateTitleBasedOnSavePasswordPref() const { |
304 int message_id = 0; | 305 int message_id = 0; |
305 if (never_save_passwords_) | 306 if (never_save_passwords_) |
306 message_id = IDS_MANAGE_PASSWORDS_BLACKLIST_CONFIRMATION_TITLE; | 307 message_id = IDS_MANAGE_PASSWORDS_BLACKLIST_CONFIRMATION_TITLE; |
307 else if (IsNewUIActive()) | 308 else if (IsNewUIActive()) |
308 message_id = IDS_PASSWORD_MANAGER_SAVE_PASSWORD_SMART_LOCK_PROMPT; | 309 message_id = IDS_PASSWORD_MANAGER_SAVE_PASSWORD_SMART_LOCK_PROMPT; |
309 else | 310 else |
310 message_id = IDS_SAVE_PASSWORD; | 311 message_id = IDS_SAVE_PASSWORD; |
311 return l10n_util::GetStringUTF16(message_id); | 312 return l10n_util::GetStringUTF16(message_id); |
312 } | 313 } |
OLD | NEW |