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

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 7717025: Do not initialize event routers in the Profile Import process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: reset will_import_ value when import complete. Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // being upgraded. 236 // being upgraded.
237 bool IsBeingUpgraded(const Extension* extension); 237 bool IsBeingUpgraded(const Extension* extension);
238 void SetBeingUpgraded(const Extension* extension, bool value); 238 void SetBeingUpgraded(const Extension* extension, bool value);
239 239
240 // Getter for the extension's runtime data PropertyBag. 240 // Getter for the extension's runtime data PropertyBag.
241 PropertyBag* GetPropertyBag(const Extension* extension); 241 PropertyBag* GetPropertyBag(const Extension* extension);
242 242
243 // Initialize and start all installed extensions. 243 // Initialize and start all installed extensions.
244 void Init(); 244 void Init();
245 245
246 // Initialize the event routers after import has finished.
247 void InitEventRoutersAfterImport();
248
246 // Start up the extension event routers. 249 // Start up the extension event routers.
247 void InitEventRouters(); 250 void InitEventRouters();
248 251
249 // Look up an extension by ID. Does not include terminated 252 // Look up an extension by ID. Does not include terminated
250 // extensions. 253 // extensions.
251 virtual const Extension* GetExtensionById( 254 virtual const Extension* GetExtensionById(
252 const std::string& id, bool include_disabled) const OVERRIDE; 255 const std::string& id, bool include_disabled) const OVERRIDE;
253 256
254 // Looks up a terminated (crashed) extension by ID. 257 // Looks up a terminated (crashed) extension by ID.
255 const Extension* GetTerminatedExtension(const std::string& id) const; 258 const Extension* GetTerminatedExtension(const std::string& id) const;
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 SyncBundle extension_sync_bundle_; 791 SyncBundle extension_sync_bundle_;
789 792
790 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 793 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
791 InstallAppsWithUnlimtedStorage); 794 InstallAppsWithUnlimtedStorage);
792 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 795 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
793 InstallAppsAndCheckStorageProtection); 796 InstallAppsAndCheckStorageProtection);
794 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 797 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
795 }; 798 };
796 799
797 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 800 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698