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

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

Issue 2019423007: Re-enable extensions disabled due to permission increase if they have all permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext_update_test
Patch Set: histogram nit Created 4 years, 6 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
« no previous file with comments | « no previous file | 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) 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 void NotifyExtensionUnloaded( 530 void NotifyExtensionUnloaded(
531 const extensions::Extension* extension, 531 const extensions::Extension* extension,
532 extensions::UnloadedExtensionInfo::Reason reason); 532 extensions::UnloadedExtensionInfo::Reason reason);
533 533
534 // Common helper to finish installing the given extension. 534 // Common helper to finish installing the given extension.
535 void FinishInstallation(const extensions::Extension* extension); 535 void FinishInstallation(const extensions::Extension* extension);
536 536
537 // Disables the extension if the privilege level has increased 537 // Disables the extension if the privilege level has increased
538 // (e.g., due to an upgrade). 538 // (e.g., due to an upgrade).
539 void CheckPermissionsIncrease(const extensions::Extension* extension, 539 void CheckPermissionsIncrease(const extensions::Extension* extension,
540 bool is_extension_installed); 540 bool is_extension_loaded);
541 541
542 // Helper that updates the active extension list used for crash reporting. 542 // Helper that updates the active extension list used for crash reporting.
543 void UpdateActiveExtensionsInCrashReporter(); 543 void UpdateActiveExtensionsInCrashReporter();
544 544
545 // Helper to get the disable reasons for an installed (or upgraded) extension. 545 // Helper to get the disable reasons for an installed (or upgraded) extension.
546 // A return value of Extension::DISABLE_NONE indicates that we should enable 546 // A return value of Extension::DISABLE_NONE indicates that we should enable
547 // this extension initially. 547 // this extension initially.
548 int GetDisableReasonsOnInstalled(const extensions::Extension* extension); 548 int GetDisableReasonsOnInstalled(const extensions::Extension* extension);
549 549
550 // Helper method to determine if an extension can be blocked. 550 // Helper method to determine if an extension can be blocked.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 GreylistUnknownDontChange); 739 GreylistUnknownDontChange);
740 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 740 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
741 ManagementPolicyProhibitsEnableOnInstalled); 741 ManagementPolicyProhibitsEnableOnInstalled);
742 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 742 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
743 BlockAndUnblockBlacklistedExtension); 743 BlockAndUnblockBlacklistedExtension);
744 744
745 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 745 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
746 }; 746 };
747 747
748 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 748 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698