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

Side by Side Diff: chrome/browser/plugin_installer.cc

Issue 109043: Move l10n_util to app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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) 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 "app/l10n_util.h"
7 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
8 #include "base/string_util.h" 9 #include "base/string_util.h"
9 #include "chrome/browser/tab_contents/tab_contents.h" 10 #include "chrome/browser/tab_contents/tab_contents.h"
10 #include "chrome/common/l10n_util.h"
11 #include "grit/generated_resources.h" 11 #include "grit/generated_resources.h"
12 #include "grit/theme_resources.h" 12 #include "grit/theme_resources.h"
13 #include "webkit/default_plugin/default_plugin_shared.h" 13 #include "webkit/default_plugin/default_plugin_shared.h"
14 14
15 PluginInstaller::PluginInstaller(TabContents* tab_contents) 15 PluginInstaller::PluginInstaller(TabContents* tab_contents)
16 : ConfirmInfoBarDelegate(tab_contents), 16 : ConfirmInfoBarDelegate(tab_contents),
17 tab_contents_(tab_contents) { 17 tab_contents_(tab_contents) {
18 } 18 }
19 19
20 PluginInstaller::~PluginInstaller() { 20 PluginInstaller::~PluginInstaller() {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 std::wstring PluginInstaller::GetButtonLabel(InfoBarButton button) const { 57 std::wstring PluginInstaller::GetButtonLabel(InfoBarButton button) const {
58 if (button == BUTTON_OK) 58 if (button == BUTTON_OK)
59 return l10n_util::GetString(IDS_PLUGININSTALLER_INSTALLPLUGIN_BUTTON); 59 return l10n_util::GetString(IDS_PLUGININSTALLER_INSTALLPLUGIN_BUTTON);
60 return ConfirmInfoBarDelegate::GetButtonLabel(button); 60 return ConfirmInfoBarDelegate::GetButtonLabel(button);
61 } 61 }
62 62
63 bool PluginInstaller::Accept() { 63 bool PluginInstaller::Accept() {
64 tab_contents_->render_view_host()->InstallMissingPlugin(); 64 tab_contents_->render_view_host()->InstallMissingPlugin();
65 return true; 65 return true;
66 } 66 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_manager.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698