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

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

Issue 959513002: Refactor Extension initialization logic. Add tracing and additional histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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) 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 #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 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 void OnBlacklistUpdated() override; 493 void OnBlacklistUpdated() override;
494 494
495 // Similar to FinishInstallation, but first checks if there still is an update 495 // Similar to FinishInstallation, but first checks if there still is an update
496 // pending for the extension, and makes sure the extension is still idle. 496 // pending for the extension, and makes sure the extension is still idle.
497 void MaybeFinishDelayedInstallation(const std::string& extension_id); 497 void MaybeFinishDelayedInstallation(const std::string& extension_id);
498 498
499 // For the extension in |version_path| with |id|, check to see if it's an 499 // For the extension in |version_path| with |id|, check to see if it's an
500 // externally managed extension. If so, uninstall it. 500 // externally managed extension. If so, uninstall it.
501 void CheckExternalUninstall(const std::string& id); 501 void CheckExternalUninstall(const std::string& id);
502 502
503 // Attempt to enable all disabled extensions which the only disabled reason is
504 // reloading.
505 void EnabledReloadableExtensions();
506
507 // Finish install (if possible) of extensions that were still delayed while
508 // the browser was shut down.
509 void MaybeFinishShutdownDelayed();
510
503 // Populates greylist_. 511 // Populates greylist_.
504 void LoadGreylistFromPrefs(); 512 void LoadGreylistFromPrefs();
505 513
506 // Signals *ready_ and sends a notification to the listeners. 514 // Signals *ready_ and sends a notification to the listeners.
507 void SetReadyAndNotifyListeners(); 515 void SetReadyAndNotifyListeners();
508 516
509 // Returns true if all the external extension providers are ready. 517 // Returns true if all the external extension providers are ready.
510 bool AreAllExternalProvidersReady() const; 518 bool AreAllExternalProvidersReady() const;
511 519
512 // Called once all external providers are ready. Checks for unclaimed 520 // Called once all external providers are ready. Checks for unclaimed
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 GreylistUnknownDontChange); 762 GreylistUnknownDontChange);
755 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 763 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
756 ManagementPolicyProhibitsEnableOnInstalled); 764 ManagementPolicyProhibitsEnableOnInstalled);
757 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 765 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
758 BlockAndUnblockBlacklistedExtension); 766 BlockAndUnblockBlacklistedExtension);
759 767
760 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 768 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
761 }; 769 };
762 770
763 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 771 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698