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

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

Issue 469993006: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/save_password_infobar_delegate.h" 5 #include "chrome/browser/password_manager/save_password_infobar_delegate.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/infobars/infobar_service.h" 9 #include "chrome/browser/infobars/infobar_service.h"
10 #include "chrome/browser/ui/sync/one_click_signin_helper.h" 10 #include "chrome/browser/ui/sync/one_click_signin_helper.h"
11 #include "chrome/grit/chromium_strings.h"
12 #include "chrome/grit/generated_resources.h"
11 #include "components/infobars/core/infobar.h" 13 #include "components/infobars/core/infobar.h"
12 #include "components/password_manager/core/browser/password_form_manager.h" 14 #include "components/password_manager/core/browser/password_form_manager.h"
13 #include "components/signin/core/common/profile_management_switches.h" 15 #include "components/signin/core/common/profile_management_switches.h"
14 #include "content/public/browser/navigation_entry.h" 16 #include "content/public/browser/navigation_entry.h"
15 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
16 #include "google_apis/gaia/gaia_urls.h" 18 #include "google_apis/gaia/gaia_urls.h"
17 #include "grit/chromium_strings.h"
18 #include "grit/generated_resources.h"
19 #include "grit/theme_resources.h" 19 #include "grit/theme_resources.h"
20 #include "ui/base/l10n/l10n_util.h" 20 #include "ui/base/l10n/l10n_util.h"
21 21
22 // static 22 // static
23 void SavePasswordInfoBarDelegate::Create( 23 void SavePasswordInfoBarDelegate::Create(
24 content::WebContents* web_contents, 24 content::WebContents* web_contents,
25 scoped_ptr<password_manager::PasswordFormManager> form_to_save, 25 scoped_ptr<password_manager::PasswordFormManager> form_to_save,
26 const std::string& uma_histogram_suffix) { 26 const std::string& uma_histogram_suffix) {
27 #if defined(ENABLE_ONE_CLICK_SIGNIN) 27 #if defined(ENABLE_ONE_CLICK_SIGNIN)
28 // Don't show the password manager infobar if this form is for a google 28 // Don't show the password manager infobar if this form is for a google
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 void SavePasswordInfoBarDelegate::InfoBarDismissed() { 152 void SavePasswordInfoBarDelegate::InfoBarDismissed() {
153 DCHECK(form_to_save_.get()); 153 DCHECK(form_to_save_.get());
154 infobar_response_ = password_manager::metrics_util::INFOBAR_DISMISSED; 154 infobar_response_ = password_manager::metrics_util::INFOBAR_DISMISSED;
155 } 155 }
156 156
157 infobars::InfoBarDelegate::InfoBarAutomationType 157 infobars::InfoBarDelegate::InfoBarAutomationType
158 SavePasswordInfoBarDelegate::GetInfoBarAutomationType() const { 158 SavePasswordInfoBarDelegate::GetInfoBarAutomationType() const {
159 return PASSWORD_INFOBAR; 159 return PASSWORD_INFOBAR;
160 } 160 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698