| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/extensions/extension_action_runner.h" | 5 #include "chrome/browser/extensions/extension_action_runner.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram_macros.h" |
| 15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
| 17 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
| 18 #include "chrome/browser/extensions/active_tab_permission_granter.h" | 18 #include "chrome/browser/extensions/active_tab_permission_granter.h" |
| 19 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h" | 19 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h" |
| 20 #include "chrome/browser/extensions/extension_action.h" | 20 #include "chrome/browser/extensions/extension_action.h" |
| 21 #include "chrome/browser/extensions/extension_action_manager.h" | 21 #include "chrome/browser/extensions/extension_action_manager.h" |
| 22 #include "chrome/browser/extensions/permissions_updater.h" | 22 #include "chrome/browser/extensions/permissions_updater.h" |
| 23 #include "chrome/browser/extensions/tab_helper.h" | 23 #include "chrome/browser/extensions/tab_helper.h" |
| 24 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 UnloadedExtensionInfo::Reason reason) { | 420 UnloadedExtensionInfo::Reason reason) { |
| 421 PendingScriptMap::iterator iter = pending_scripts_.find(extension->id()); | 421 PendingScriptMap::iterator iter = pending_scripts_.find(extension->id()); |
| 422 if (iter != pending_scripts_.end()) { | 422 if (iter != pending_scripts_.end()) { |
| 423 pending_scripts_.erase(iter); | 423 pending_scripts_.erase(iter); |
| 424 ExtensionActionAPI::Get(browser_context_) | 424 ExtensionActionAPI::Get(browser_context_) |
| 425 ->NotifyPageActionsChanged(web_contents()); | 425 ->NotifyPageActionsChanged(web_contents()); |
| 426 } | 426 } |
| 427 } | 427 } |
| 428 | 428 |
| 429 } // namespace extensions | 429 } // namespace extensions |
| OLD | NEW |