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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_bubble_model.cc

Issue 1031253003: Move credential_manager_types.h to components/password_manager/core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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/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/generated_resources.h" 15 #include "chrome/grit/generated_resources.h"
16 #include "components/feedback/feedback_data.h" 16 #include "components/feedback/feedback_data.h"
17 #include "components/feedback/feedback_util.h" 17 #include "components/feedback/feedback_util.h"
18 #include "components/password_manager/content/common/credential_manager_types.h"
19 #include "components/password_manager/core/browser/password_store.h" 18 #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/password_manager_ui.h" 20 #include "components/password_manager/core/common/password_manager_ui.h"
21 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
22 #include "content/public/common/content_switches.h" 22 #include "content/public/common/content_switches.h"
23 #include "ui/base/l10n/l10n_util.h" 23 #include "ui/base/l10n/l10n_util.h"
24 #include "ui/base/resource/resource_bundle.h" 24 #include "ui/base/resource/resource_bundle.h"
25 25
26 using autofill::PasswordFormMap; 26 using autofill::PasswordFormMap;
27 using feedback::FeedbackData; 27 using feedback::FeedbackData;
28 using content::WebContents; 28 using content::WebContents;
29 namespace metrics_util = password_manager::metrics_util; 29 namespace metrics_util = password_manager::metrics_util;
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 ManagePasswordsBubbleModel::PendingStateTitleBasedOnSavePasswordPref() const { 303 ManagePasswordsBubbleModel::PendingStateTitleBasedOnSavePasswordPref() const {
304 int message_id = 0; 304 int message_id = 0;
305 if (never_save_passwords_) 305 if (never_save_passwords_)
306 message_id = IDS_MANAGE_PASSWORDS_BLACKLIST_CONFIRMATION_TITLE; 306 message_id = IDS_MANAGE_PASSWORDS_BLACKLIST_CONFIRMATION_TITLE;
307 else if (IsNewUIActive()) 307 else if (IsNewUIActive())
308 message_id = IDS_PASSWORD_MANAGER_SAVE_PASSWORD_SMART_LOCK_PROMPT; 308 message_id = IDS_PASSWORD_MANAGER_SAVE_PASSWORD_SMART_LOCK_PROMPT;
309 else 309 else
310 message_id = IDS_SAVE_PASSWORD; 310 message_id = IDS_SAVE_PASSWORD;
311 return l10n_util::GetStringUTF16(message_id); 311 return l10n_util::GetStringUTF16(message_id);
312 } 312 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698