| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "extensions/browser/extension_user_script_loader.h" | 5 #include "extensions/browser/extension_user_script_loader.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 if (hosts_info_.find(host_id) != hosts_info_.end()) | 229 if (hosts_info_.find(host_id) != hosts_info_.end()) |
| 230 continue; | 230 continue; |
| 231 hosts_info_[host_id] = ExtensionSet::ExtensionPathAndDefaultLocale( | 231 hosts_info_[host_id] = ExtensionSet::ExtensionPathAndDefaultLocale( |
| 232 extension->path(), LocaleInfo::GetDefaultLocale(extension)); | 232 extension->path(), LocaleInfo::GetDefaultLocale(extension)); |
| 233 } | 233 } |
| 234 } | 234 } |
| 235 | 235 |
| 236 void ExtensionUserScriptLoader::OnExtensionUnloaded( | 236 void ExtensionUserScriptLoader::OnExtensionUnloaded( |
| 237 content::BrowserContext* browser_context, | 237 content::BrowserContext* browser_context, |
| 238 const Extension* extension, | 238 const Extension* extension, |
| 239 UnloadedExtensionInfo::Reason reason) { | 239 UnloadedExtensionReason reason) { |
| 240 hosts_info_.erase(HostID(HostID::EXTENSIONS, extension->id())); | 240 hosts_info_.erase(HostID(HostID::EXTENSIONS, extension->id())); |
| 241 } | 241 } |
| 242 | 242 |
| 243 void ExtensionUserScriptLoader::OnExtensionSystemReady() { | 243 void ExtensionUserScriptLoader::OnExtensionSystemReady() { |
| 244 SetReady(true); | 244 SetReady(true); |
| 245 } | 245 } |
| 246 | 246 |
| 247 } // namespace extensions | 247 } // namespace extensions |
| OLD | NEW |