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

Side by Side Diff: chrome/browser/extensions/activity_log/activity_log.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/activity_log/activity_log.h" 5 #include "chrome/browser/extensions/activity_log/activity_log.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 674
675 if (!extension_system_->ready().is_signaled()) 675 if (!extension_system_->ready().is_signaled())
676 return; 676 return;
677 677
678 CheckActive(false); // don't use cached 678 CheckActive(false); // don't use cached
679 UpdateCachedConsumerCount(); 679 UpdateCachedConsumerCount();
680 } 680 }
681 681
682 void ActivityLog::OnExtensionUnloaded(content::BrowserContext* browser_context, 682 void ActivityLog::OnExtensionUnloaded(content::BrowserContext* browser_context,
683 const Extension* extension, 683 const Extension* extension,
684 UnloadedExtensionInfo::Reason reason) { 684 UnloadedExtensionReason reason) {
685 if (!ActivityLogAPI::IsExtensionWhitelisted(extension->id())) 685 if (!ActivityLogAPI::IsExtensionWhitelisted(extension->id()))
686 return; 686 return;
687 --active_consumers_; 687 --active_consumers_;
688 688
689 if (!extension_system_->ready().is_signaled()) 689 if (!extension_system_->ready().is_signaled())
690 return; 690 return;
691 691
692 CheckActive(false); // don't use cached 692 CheckActive(false); // don't use cached
693 UpdateCachedConsumerCount(); 693 UpdateCachedConsumerCount();
694 } 694 }
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 } 939 }
940 } 940 }
941 941
942 template <> 942 template <>
943 void BrowserContextKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies() { 943 void BrowserContextKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies() {
944 DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory()); 944 DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory());
945 DependsOn(ExtensionRegistryFactory::GetInstance()); 945 DependsOn(ExtensionRegistryFactory::GetInstance());
946 } 946 }
947 947
948 } // namespace extensions 948 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/activity_log/activity_log.h ('k') | chrome/browser/extensions/api/debugger/debugger_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698