| OLD | NEW |
| 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/plugin_installer_infobar_delegate.h" | 5 #include "chrome/browser/plugin_installer_infobar_delegate.h" |
| 6 | 6 |
| 7 #include "chrome/browser/renderer_host/render_view_host.h" | 7 #include "content/browser/renderer_host/render_view_host.h" |
| 8 #include "chrome/browser/tab_contents/tab_contents.h" | 8 #include "content/browser/tab_contents/tab_contents.h" |
| 9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
| 10 #include "grit/locale_settings.h" | 10 #include "grit/locale_settings.h" |
| 11 #include "grit/theme_resources.h" | 11 #include "grit/theme_resources.h" |
| 12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
| 13 #include "ui/base/resource/resource_bundle.h" | 13 #include "ui/base/resource/resource_bundle.h" |
| 14 | 14 |
| 15 PluginInstallerInfoBarDelegate::PluginInstallerInfoBarDelegate( | 15 PluginInstallerInfoBarDelegate::PluginInstallerInfoBarDelegate( |
| 16 TabContents* tab_contents) | 16 TabContents* tab_contents) |
| 17 : ConfirmInfoBarDelegate(tab_contents), | 17 : ConfirmInfoBarDelegate(tab_contents), |
| 18 tab_contents_(tab_contents) { | 18 tab_contents_(tab_contents) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 bool PluginInstallerInfoBarDelegate::LinkClicked( | 57 bool PluginInstallerInfoBarDelegate::LinkClicked( |
| 58 WindowOpenDisposition disposition) { | 58 WindowOpenDisposition disposition) { |
| 59 // Ignore the click dispostion and always open in a new top level tab. | 59 // Ignore the click dispostion and always open in a new top level tab. |
| 60 static const char kLearnMorePluginInstallerUrl[] = "http://www.google.com/" | 60 static const char kLearnMorePluginInstallerUrl[] = "http://www.google.com/" |
| 61 "support/chrome/bin/answer.py?answer=95697&topic=14687"; | 61 "support/chrome/bin/answer.py?answer=95697&topic=14687"; |
| 62 tab_contents_->OpenURL(GURL(kLearnMorePluginInstallerUrl), GURL(), | 62 tab_contents_->OpenURL(GURL(kLearnMorePluginInstallerUrl), GURL(), |
| 63 NEW_FOREGROUND_TAB, PageTransition::LINK); | 63 NEW_FOREGROUND_TAB, PageTransition::LINK); |
| 64 return false; | 64 return false; |
| 65 } | 65 } |
| OLD | NEW |