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

Side by Side Diff: chrome/browser/infobars/insecure_content_infobar_delegate.cc

Issue 10843071: Create chrome/browser/api directory. Move infobar delegates used by Autofill to the directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/tab_contents/insecure_content_infobar_delegate.h" 5 #include "chrome/browser/infobars/insecure_content_infobar_delegate.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "chrome/browser/google/google_util.h" 8 #include "chrome/browser/google/google_util.h"
9 #include "chrome/browser/infobars/infobar_tab_helper.h" 9 #include "chrome/browser/infobars/infobar_tab_helper.h"
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
11 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
12 #include "content/public/common/page_transition_types.h" 12 #include "content/public/common/page_transition_types.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 15
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 bool InsecureContentInfoBarDelegate::LinkClicked( 81 bool InsecureContentInfoBarDelegate::LinkClicked(
82 WindowOpenDisposition disposition) { 82 WindowOpenDisposition disposition) {
83 owner()->web_contents()->OpenURL(OpenURLParams( 83 owner()->web_contents()->OpenURL(OpenURLParams(
84 google_util::AppendGoogleLocaleParam(GURL( 84 google_util::AppendGoogleLocaleParam(GURL(
85 "https://www.google.com/support/chrome/bin/answer.py?answer=1342714")), 85 "https://www.google.com/support/chrome/bin/answer.py?answer=1342714")),
86 content::Referrer(), 86 content::Referrer(),
87 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, 87 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
88 content::PAGE_TRANSITION_LINK, false)); 88 content::PAGE_TRANSITION_LINK, false));
89 return false; 89 return false;
90 } 90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698