| 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/ui/hung_plugin_tab_helper.h" | 5 #include "chrome/browser/ui/hung_plugin_tab_helper.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/process/process.h" | 12 #include "base/process/process.h" |
| 13 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
| 16 #include "chrome/browser/infobars/infobar_service.h" | 16 #include "chrome/browser/infobars/infobar_service.h" |
| 17 #include "chrome/common/channel_info.h" | 17 #include "chrome/common/channel_info.h" |
| 18 #include "chrome/grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
| 19 #include "chrome/grit/locale_settings.h" | |
| 20 #include "chrome/grit/theme_resources.h" | 19 #include "chrome/grit/theme_resources.h" |
| 21 #include "components/infobars/core/confirm_infobar_delegate.h" | 20 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 22 #include "components/infobars/core/infobar.h" | 21 #include "components/infobars/core/infobar.h" |
| 23 #include "components/version_info/version_info.h" | 22 #include "components/version_info/version_info.h" |
| 24 #include "content/public/browser/browser_child_process_host_iterator.h" | 23 #include "content/public/browser/browser_child_process_host_iterator.h" |
| 25 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
| 26 #include "content/public/browser/child_process_data.h" | 25 #include "content/public/browser/child_process_data.h" |
| 27 #include "content/public/browser/notification_details.h" | 26 #include "content/public/browser/notification_details.h" |
| 28 #include "content/public/browser/notification_service.h" | 27 #include "content/public/browser/notification_service.h" |
| 29 #include "content/public/browser/plugin_service.h" | 28 #include "content/public/browser/plugin_service.h" |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 } | 425 } |
| 427 | 426 |
| 428 void HungPluginTabHelper::CloseBar(PluginState* state) { | 427 void HungPluginTabHelper::CloseBar(PluginState* state) { |
| 429 InfoBarService* infobar_service = | 428 InfoBarService* infobar_service = |
| 430 InfoBarService::FromWebContents(web_contents()); | 429 InfoBarService::FromWebContents(web_contents()); |
| 431 if (infobar_service && state->infobar) { | 430 if (infobar_service && state->infobar) { |
| 432 infobar_service->RemoveInfoBar(state->infobar); | 431 infobar_service->RemoveInfoBar(state->infobar); |
| 433 state->infobar = NULL; | 432 state->infobar = NULL; |
| 434 } | 433 } |
| 435 } | 434 } |
| OLD | NEW |