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

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

Issue 22145004: Profile Reset: Don't disable defaults apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Grammar 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
« 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 345
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-default and non-managed extensions with ids not in
356 // |except_ids|. 356 // |except_ids|. Default extensions are those from the Web Store with
357 // |was_installed_by_default| flag.
357 void DisableUserExtensions(const std::vector<std::string>& except_ids); 358 void DisableUserExtensions(const std::vector<std::string>& except_ids);
358 359
359 // Updates the |extension|'s granted permissions lists to include all 360 // Updates the |extension|'s granted permissions lists to include all
360 // permissions in the |extension|'s manifest and re-enables the 361 // permissions in the |extension|'s manifest and re-enables the
361 // extension. 362 // extension.
362 void GrantPermissionsAndEnableExtension( 363 void GrantPermissionsAndEnableExtension(
363 const extensions::Extension* extension); 364 const extensions::Extension* extension);
364 365
365 // Updates the |extension|'s granted permissions lists to include all 366 // Updates the |extension|'s granted permissions lists to include all
366 // permissions in the |extensions|'s manifest. 367 // permissions in the |extensions|'s manifest.
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 syncer::SyncableService::StartSyncFlare flare_; 958 syncer::SyncableService::StartSyncFlare flare_;
958 959
959 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 960 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
960 InstallAppsWithUnlimtedStorage); 961 InstallAppsWithUnlimtedStorage);
961 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 962 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
962 InstallAppsAndCheckStorageProtection); 963 InstallAppsAndCheckStorageProtection);
963 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 964 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
964 }; 965 };
965 966
966 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 967 #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