| 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/google/google_util.h" | 7 #include "chrome/browser/google/google_util.h" |
| 8 #include "chrome/browser/infobars/infobar_tab_helper.h" | 8 #include "chrome/browser/infobars/infobar_tab_helper.h" |
| 9 #include "content/browser/renderer_host/render_view_host.h" | 9 #include "content/browser/renderer_host/render_view_host.h" |
| 10 #include "content/browser/tab_contents/tab_contents.h" | 10 #include "content/browser/tab_contents/tab_contents.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 string16 PluginInstallerInfoBarDelegate::GetLinkText() const { | 66 string16 PluginInstallerInfoBarDelegate::GetLinkText() const { |
| 67 return l10n_util::GetStringUTF16(IDS_PLUGININSTALLER_PROBLEMSINSTALLING); | 67 return l10n_util::GetStringUTF16(IDS_PLUGININSTALLER_PROBLEMSINSTALLING); |
| 68 } | 68 } |
| 69 | 69 |
| 70 bool PluginInstallerInfoBarDelegate::LinkClicked( | 70 bool PluginInstallerInfoBarDelegate::LinkClicked( |
| 71 WindowOpenDisposition disposition) { | 71 WindowOpenDisposition disposition) { |
| 72 owner()->tab_contents()->OpenURL(google_util::AppendGoogleLocaleParam(GURL( | 72 owner()->tab_contents()->OpenURL(google_util::AppendGoogleLocaleParam(GURL( |
| 73 "http://www.google.com/support/chrome/bin/answer.py?answer=95697&topic=" | 73 "http://www.google.com/support/chrome/bin/answer.py?answer=95697&topic=" |
| 74 "14687")), GURL(), | 74 "14687")), GURL(), |
| 75 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, | 75 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, |
| 76 PageTransition::LINK); | 76 content::PAGE_TRANSITION_LINK); |
| 77 return false; | 77 return false; |
| 78 } | 78 } |
| OLD | NEW |