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

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

Issue 344543006: Disable ephemeral apps after they stop running (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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
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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 void ReloadExtensionsForTest(); 395 void ReloadExtensionsForTest();
396 396
397 // Clear all ExternalProviders. 397 // Clear all ExternalProviders.
398 void ClearProvidersForTesting(); 398 void ClearProvidersForTesting();
399 399
400 // Adds an ExternalProviderInterface for the service to use during testing. 400 // Adds an ExternalProviderInterface for the service to use during testing.
401 // Takes ownership of |test_provider|. 401 // Takes ownership of |test_provider|.
402 void AddProviderForTesting( 402 void AddProviderForTesting(
403 extensions::ExternalProviderInterface* test_provider); 403 extensions::ExternalProviderInterface* test_provider);
404 404
405 // Simulate an extension being blacklisted for tests.
406 void BlacklistExtensionForTest(const std::string& extension_id);
407
405 #if defined(UNIT_TEST) 408 #if defined(UNIT_TEST)
406 void TrackTerminatedExtensionForTest(const extensions::Extension* extension) { 409 void TrackTerminatedExtensionForTest(const extensions::Extension* extension) {
407 TrackTerminatedExtension(extension); 410 TrackTerminatedExtension(extension);
408 } 411 }
409 412
410 void FinishInstallationForTest(const extensions::Extension* extension) { 413 void FinishInstallationForTest(const extensions::Extension* extension) {
411 FinishInstallation(extension, false /* not ephemeral */); 414 FinishInstallation(extension, false /* not ephemeral */);
412 } 415 }
413 #endif 416 #endif
414 417
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 GreylistedExtensionDisabled); 703 GreylistedExtensionDisabled);
701 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 704 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
702 GreylistDontEnableManuallyDisabled); 705 GreylistDontEnableManuallyDisabled);
703 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 706 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
704 GreylistUnknownDontChange); 707 GreylistUnknownDontChange);
705 708
706 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 709 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
707 }; 710 };
708 711
709 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 712 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698