| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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.h" | 5 #include "chrome/browser/plugin_installer.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "chrome/app/theme/theme_resources.h" | 8 #include "grit/theme_resources.h" |
| 9 #include "chrome/browser/tab_contents/web_contents.h" | 9 #include "chrome/browser/tab_contents/web_contents.h" |
| 10 #include "chrome/common/l10n_util.h" | 10 #include "chrome/common/l10n_util.h" |
| 11 #include "chrome/common/resource_bundle.h" | 11 #include "chrome/common/resource_bundle.h" |
| 12 #include "webkit/default_plugin/default_plugin_shared.h" | 12 #include "webkit/default_plugin/default_plugin_shared.h" |
| 13 | 13 |
| 14 #include "generated_resources.h" | 14 #include "generated_resources.h" |
| 15 | 15 |
| 16 PluginInstaller::PluginInstaller(WebContents* web_contents) | 16 PluginInstaller::PluginInstaller(WebContents* web_contents) |
| 17 : ConfirmInfoBarDelegate(web_contents), | 17 : ConfirmInfoBarDelegate(web_contents), |
| 18 web_contents_(web_contents) { | 18 web_contents_(web_contents) { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 std::wstring PluginInstaller::GetButtonLabel(InfoBarButton button) const { | 58 std::wstring PluginInstaller::GetButtonLabel(InfoBarButton button) const { |
| 59 if (button == BUTTON_OK) | 59 if (button == BUTTON_OK) |
| 60 return l10n_util::GetString(IDS_PLUGININSTALLER_INSTALLPLUGIN_BUTTON); | 60 return l10n_util::GetString(IDS_PLUGININSTALLER_INSTALLPLUGIN_BUTTON); |
| 61 return ConfirmInfoBarDelegate::GetButtonLabel(button); | 61 return ConfirmInfoBarDelegate::GetButtonLabel(button); |
| 62 } | 62 } |
| 63 | 63 |
| 64 bool PluginInstaller::Accept() { | 64 bool PluginInstaller::Accept() { |
| 65 web_contents_->render_view_host()->InstallMissingPlugin(); | 65 web_contents_->render_view_host()->InstallMissingPlugin(); |
| 66 return true; | 66 return true; |
| 67 } | 67 } |
| OLD | NEW |