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

Side by Side Diff: components/autofill/core/browser/autofill_cc_infobar_delegate.cc

Issue 1361253002: Separate the URL of an infobar link with clicking on it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pkasting Created 5 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "components/autofill/core/browser/autofill_cc_infobar_delegate.h" 5 #include "components/autofill/core/browser/autofill_cc_infobar_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "components/autofill/core/browser/autofill_client.h" 8 #include "components/autofill/core/browser/autofill_client.h"
9 #include "components/autofill/core/browser/credit_card.h" 9 #include "components/autofill/core/browser/credit_card.h"
10 #include "components/autofill/core/browser/personal_data_manager.h" 10 #include "components/autofill/core/browser/personal_data_manager.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 bool AutofillCCInfoBarDelegate::Cancel() { 101 bool AutofillCCInfoBarDelegate::Cancel() {
102 LogUserAction(AutofillMetrics::INFOBAR_DENIED); 102 LogUserAction(AutofillMetrics::INFOBAR_DENIED);
103 return true; 103 return true;
104 } 104 }
105 105
106 base::string16 AutofillCCInfoBarDelegate::GetLinkText() const { 106 base::string16 AutofillCCInfoBarDelegate::GetLinkText() const {
107 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); 107 return l10n_util::GetStringUTF16(IDS_LEARN_MORE);
108 } 108 }
109 109
110 bool AutofillCCInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { 110 GURL AutofillCCInfoBarDelegate::GetLinkURL() const {
111 autofill_client_->LinkClicked( 111 return GURL(kHelpURL);
112 GURL(kHelpURL),
113 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition);
114
115 return false;
116 } 112 }
117 113
118 } // namespace autofill 114 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_cc_infobar_delegate.h ('k') | components/autofill/core/browser/autofill_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698