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

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

Issue 671873004: Migrates legacy packaged app data when it's upgraded to a platform app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Empty patch trying to unwedge try server Created 6 years, 1 month 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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 // Helper to determine if updating an extensions should proceed immediately, 554 // Helper to determine if updating an extensions should proceed immediately,
555 // or if we should delay the update until further notice. 555 // or if we should delay the update until further notice.
556 bool ShouldDelayExtensionUpdate(const std::string& extension_id, 556 bool ShouldDelayExtensionUpdate(const std::string& extension_id,
557 bool install_immediately) const; 557 bool install_immediately) const;
558 558
559 // Manages the blacklisted extensions, intended as callback from 559 // Manages the blacklisted extensions, intended as callback from
560 // Blacklist::GetBlacklistedIDs. 560 // Blacklist::GetBlacklistedIDs.
561 void ManageBlacklist( 561 void ManageBlacklist(
562 const extensions::Blacklist::BlacklistStateMap& blacklisted_ids); 562 const extensions::Blacklist::BlacklistStateMap& blacklisted_ids);
563 563
564 bool NeedsMigration(const extensions::Extension* extension);
565
566 void MigrateThenFinishInstallation(const extensions::Extension* extension,
567 bool was_ephemeral);
568
564 // Add extensions in |blocked| to blacklisted_extensions, remove extensions 569 // Add extensions in |blocked| to blacklisted_extensions, remove extensions
565 // that are neither in |blocked|, nor in |unchanged|. 570 // that are neither in |blocked|, nor in |unchanged|.
566 void UpdateBlockedExtensions(const extensions::ExtensionIdSet& blocked, 571 void UpdateBlockedExtensions(const extensions::ExtensionIdSet& blocked,
567 const extensions::ExtensionIdSet& unchanged); 572 const extensions::ExtensionIdSet& unchanged);
568 573
569 void UpdateGreylistedExtensions( 574 void UpdateGreylistedExtensions(
570 const extensions::ExtensionIdSet& greylist, 575 const extensions::ExtensionIdSet& greylist,
571 const extensions::ExtensionIdSet& unchanged, 576 const extensions::ExtensionIdSet& unchanged,
572 const extensions::Blacklist::BlacklistStateMap& state_map); 577 const extensions::Blacklist::BlacklistStateMap& state_map);
573 578
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 GreylistedExtensionDisabled); 738 GreylistedExtensionDisabled);
734 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 739 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
735 GreylistDontEnableManuallyDisabled); 740 GreylistDontEnableManuallyDisabled);
736 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 741 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
737 GreylistUnknownDontChange); 742 GreylistUnknownDontChange);
738 743
739 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 744 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
740 }; 745 };
741 746
742 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 747 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/browser/extensions/extension_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698