| 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/extensions/extension_system.h" | 5 #include "chrome/browser/extensions/extension_system.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "chrome/browser/extensions/unpacked_installer.h" | 34 #include "chrome/browser/extensions/unpacked_installer.h" |
| 35 #include "chrome/browser/extensions/user_script_master.h" | 35 #include "chrome/browser/extensions/user_script_master.h" |
| 36 #include "chrome/browser/profiles/profile.h" | 36 #include "chrome/browser/profiles/profile.h" |
| 37 #include "chrome/browser/profiles/profile_manager.h" | 37 #include "chrome/browser/profiles/profile_manager.h" |
| 38 #include "chrome/browser/sync/glue/sync_start_util.h" | 38 #include "chrome/browser/sync/glue/sync_start_util.h" |
| 39 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 39 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
| 40 #include "chrome/common/chrome_switches.h" | 40 #include "chrome/common/chrome_switches.h" |
| 41 #include "chrome/common/chrome_version_info.h" | 41 #include "chrome/common/chrome_version_info.h" |
| 42 #include "chrome/common/extensions/extension.h" | 42 #include "chrome/common/extensions/extension.h" |
| 43 #include "chrome/common/extensions/features/feature_channel.h" | 43 #include "chrome/common/extensions/features/feature_channel.h" |
| 44 #include "chrome/common/extensions/manifest.h" | |
| 45 #include "content/public/browser/browser_thread.h" | 44 #include "content/public/browser/browser_thread.h" |
| 46 #include "content/public/browser/url_data_source.h" | 45 #include "content/public/browser/url_data_source.h" |
| 47 #include "extensions/common/constants.h" | 46 #include "extensions/common/constants.h" |
| 47 #include "extensions/common/manifest.h" |
| 48 | 48 |
| 49 #if defined(OS_CHROMEOS) | 49 #if defined(OS_CHROMEOS) |
| 50 #include "chrome/browser/app_mode/app_mode_utils.h" | 50 #include "chrome/browser/app_mode/app_mode_utils.h" |
| 51 #include "chromeos/chromeos_switches.h" | 51 #include "chromeos/chromeos_switches.h" |
| 52 #include "chromeos/login/login_state.h" | 52 #include "chromeos/login/login_state.h" |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 using content::BrowserThread; | 55 using content::BrowserThread; |
| 56 | 56 |
| 57 namespace extensions { | 57 namespace extensions { |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( | 387 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( |
| 388 const std::string& extension_id, | 388 const std::string& extension_id, |
| 389 const extension_misc::UnloadedExtensionReason reason) { | 389 const extension_misc::UnloadedExtensionReason reason) { |
| 390 BrowserThread::PostTask( | 390 BrowserThread::PostTask( |
| 391 BrowserThread::IO, FROM_HERE, | 391 BrowserThread::IO, FROM_HERE, |
| 392 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), | 392 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), |
| 393 extension_id, reason)); | 393 extension_id, reason)); |
| 394 } | 394 } |
| 395 | 395 |
| 396 } // namespace extensions | 396 } // namespace extensions |
| OLD | NEW |