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

Side by Side Diff: chrome/browser/autofill/autofill_cc_infobar_delegate.cc

Issue 11778029: Be more consistent about respecting link click dispositions in infobars: for most infobars, we shou… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/autofill/autofill_cc_infobar_delegate.h" 5 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/infobars/infobar_service.h" 8 #include "chrome/browser/infobars/infobar_service.h"
9 #include "components/autofill/browser/credit_card.h" 9 #include "components/autofill/browser/credit_card.h"
10 #include "components/autofill/browser/personal_data_manager.h" 10 #include "components/autofill/browser/personal_data_manager.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 return true; 103 return true;
104 } 104 }
105 105
106 string16 AutofillCCInfoBarDelegate::GetLinkText() const { 106 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 bool AutofillCCInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {
111 owner()->GetWebContents()->GetDelegate()->OpenURLFromTab( 111 owner()->GetWebContents()->GetDelegate()->OpenURLFromTab(
112 owner()->GetWebContents(), 112 owner()->GetWebContents(),
113 content::OpenURLParams(GURL(autofill::kHelpURL), 113 content::OpenURLParams(
114 content::Referrer(), 114 GURL(autofill::kHelpURL),
115 NEW_FOREGROUND_TAB, 115 content::Referrer(),
116 content::PAGE_TRANSITION_LINK, 116 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
117 false)); 117 content::PAGE_TRANSITION_LINK,
118 false));
118 return false; 119 return false;
119 } 120 }
120 121
121 } // namespace autofill 122 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698