Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: extensions/browser/extension_user_script_loader.cc

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698