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

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

Issue 21779002: Don't disable packaged / hosted Apps on profile_reset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // Enables the extension. If the extension is already enabled, does 346 // Enables the extension. If the extension is already enabled, does
347 // nothing. 347 // nothing.
348 virtual void EnableExtension(const std::string& extension_id); 348 virtual void EnableExtension(const std::string& extension_id);
349 349
350 // Disables the extension. If the extension is already disabled, or 350 // Disables the extension. If the extension is already disabled, or
351 // cannot be disabled, does nothing. 351 // cannot be disabled, does nothing.
352 virtual void DisableExtension(const std::string& extension_id, 352 virtual void DisableExtension(const std::string& extension_id,
353 extensions::Extension::DisableReason disable_reason); 353 extensions::Extension::DisableReason disable_reason);
354 354
355 // Disable non-builtin and non-managed extensions with ids not in 355 // Disable non-builtin and non-managed extensions with ids not in
356 // |except_ids|. 356 // |except_ids| and whose type is contained in |type_filter|.
357 void DisableUserExtensions(const std::vector<std::string>& except_ids); 357 void DisableUserExtensions(
358 const std::set<extensions::Manifest::Type> type_filter,
vasilii 2013/08/02 09:32:04 const Reference. Do we really need std::set for 5
battre 2013/08/02 10:36:21 Done.
359 const std::vector<std::string>& except_ids);
358 360
359 // Updates the |extension|'s granted permissions lists to include all 361 // Updates the |extension|'s granted permissions lists to include all
360 // permissions in the |extension|'s manifest and re-enables the 362 // permissions in the |extension|'s manifest and re-enables the
361 // extension. 363 // extension.
362 void GrantPermissionsAndEnableExtension( 364 void GrantPermissionsAndEnableExtension(
363 const extensions::Extension* extension); 365 const extensions::Extension* extension);
364 366
365 // Updates the |extension|'s granted permissions lists to include all 367 // Updates the |extension|'s granted permissions lists to include all
366 // permissions in the |extensions|'s manifest. 368 // permissions in the |extensions|'s manifest.
367 void GrantPermissions( 369 void GrantPermissions(
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 syncer::SyncableService::StartSyncFlare flare_; 959 syncer::SyncableService::StartSyncFlare flare_;
958 960
959 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 961 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
960 InstallAppsWithUnlimtedStorage); 962 InstallAppsWithUnlimtedStorage);
961 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 963 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
962 InstallAppsAndCheckStorageProtection); 964 InstallAppsAndCheckStorageProtection);
963 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 965 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
964 }; 966 };
965 967
966 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 968 #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