OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/plugins/plugin_infobar_delegates.h" | 5 #include "chrome/browser/plugins/plugin_infobar_delegates.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "chrome/browser/infobars/infobar_service.h" | 13 #include "chrome/browser/infobars/infobar_service.h" |
14 #include "chrome/browser/lifetime/application_lifetime.h" | 14 #include "chrome/browser/lifetime/application_lifetime.h" |
15 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 15 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
16 #include "chrome/browser/plugins/plugin_metadata.h" | 16 #include "chrome/browser/plugins/plugin_metadata.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/shell_integration.h" | 18 #include "chrome/browser/shell_integration.h" |
19 #include "chrome/browser/ui/browser_commands.h" | 19 #include "chrome/browser/ui/browser_commands.h" |
20 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
21 #include "chrome/grit/chromium_strings.h" | 21 #include "chrome/grit/chromium_strings.h" |
22 #include "chrome/grit/generated_resources.h" | 22 #include "chrome/grit/generated_resources.h" |
23 #include "chrome/grit/locale_settings.h" | 23 #include "chrome/grit/locale_settings.h" |
| 24 #include "chrome/grit/theme_resources.h" |
24 #include "components/google/core/browser/google_util.h" | 25 #include "components/google/core/browser/google_util.h" |
25 #include "components/infobars/core/infobar.h" | 26 #include "components/infobars/core/infobar.h" |
| 27 #include "components/strings/grit/components_strings.h" |
26 #include "content/public/browser/render_process_host.h" | 28 #include "content/public/browser/render_process_host.h" |
27 #include "content/public/browser/render_view_host.h" | 29 #include "content/public/browser/render_view_host.h" |
28 #include "content/public/browser/user_metrics.h" | 30 #include "content/public/browser/user_metrics.h" |
29 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" |
30 #include "grit/components_strings.h" | |
31 #include "grit/theme_resources.h" | |
32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
33 | 33 |
34 #if defined(ENABLE_PLUGIN_INSTALLATION) | 34 #if defined(ENABLE_PLUGIN_INSTALLATION) |
35 #include "chrome/browser/plugins/plugin_installer.h" | 35 #include "chrome/browser/plugins/plugin_installer.h" |
36 #endif | 36 #endif |
37 | 37 |
38 #if defined(OS_WIN) | 38 #if defined(OS_WIN) |
39 #include <shellapi.h> | 39 #include <shellapi.h> |
40 #include "ui/base/win/shell.h" | 40 #include "ui/base/win/shell.h" |
41 #endif | 41 #endif |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 const base::string16& message) { | 204 const base::string16& message) { |
205 DCHECK(infobar->owner()); | 205 DCHECK(infobar->owner()); |
206 infobar->owner()->ReplaceInfoBar( | 206 infobar->owner()->ReplaceInfoBar( |
207 infobar, infobar->owner()->CreateConfirmInfoBar( | 207 infobar, infobar->owner()->CreateConfirmInfoBar( |
208 std::unique_ptr<ConfirmInfoBarDelegate>( | 208 std::unique_ptr<ConfirmInfoBarDelegate>( |
209 new OutdatedPluginInfoBarDelegate( | 209 new OutdatedPluginInfoBarDelegate( |
210 installer, std::move(plugin_metadata), message)))); | 210 installer, std::move(plugin_metadata), message)))); |
211 } | 211 } |
212 | 212 |
213 #endif // defined(ENABLE_PLUGIN_INSTALLATION) | 213 #endif // defined(ENABLE_PLUGIN_INSTALLATION) |
OLD | NEW |