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_observer.h" | 5 #include "chrome/browser/plugins/plugin_observer.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/debug/crash_logging.h" | 9 #include "base/debug/crash_logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "build/build_config.h" |
13 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/infobars/infobar_service.h" | 15 #include "chrome/browser/infobars/infobar_service.h" |
15 #include "chrome/browser/lifetime/application_lifetime.h" | 16 #include "chrome/browser/lifetime/application_lifetime.h" |
16 #include "chrome/browser/plugins/plugin_finder.h" | 17 #include "chrome/browser/plugins/plugin_finder.h" |
17 #include "chrome/browser/plugins/plugin_infobar_delegates.h" | 18 #include "chrome/browser/plugins/plugin_infobar_delegates.h" |
18 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/ui/tab_modal_confirm_dialog.h" | 20 #include "chrome/browser/ui/tab_modal_confirm_dialog.h" |
20 #include "chrome/common/render_messages.h" | 21 #include "chrome/common/render_messages.h" |
21 #include "chrome/common/url_constants.h" | 22 #include "chrome/common/url_constants.h" |
22 #include "chrome/grit/generated_resources.h" | 23 #include "chrome/grit/generated_resources.h" |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 scoped_ptr<PluginMetadata> plugin; | 437 scoped_ptr<PluginMetadata> plugin; |
437 bool ret = PluginFinder::GetInstance()->FindPluginWithIdentifier( | 438 bool ret = PluginFinder::GetInstance()->FindPluginWithIdentifier( |
438 identifier, NULL, &plugin); | 439 identifier, NULL, &plugin); |
439 DCHECK(ret); | 440 DCHECK(ret); |
440 | 441 |
441 PluginMetroModeInfoBarDelegate::Create( | 442 PluginMetroModeInfoBarDelegate::Create( |
442 InfoBarService::FromWebContents(web_contents()), | 443 InfoBarService::FromWebContents(web_contents()), |
443 PluginMetroModeInfoBarDelegate::DESKTOP_MODE_REQUIRED, plugin->name()); | 444 PluginMetroModeInfoBarDelegate::DESKTOP_MODE_REQUIRED, plugin->name()); |
444 #endif | 445 #endif |
445 } | 446 } |
OLD | NEW |