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

Unified Diff: chrome/browser/extensions/extension_service_unittest.cc

Issue 322893002: Cleanup: Make ExtensionService::OnExtensionInstalled take a bitmask instead of (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more win compile fixes Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_service_unittest.cc
diff --git a/chrome/browser/extensions/extension_service_unittest.cc b/chrome/browser/extensions/extension_service_unittest.cc
index 0b9b8e4c8ee3d9b47e05d7bd5f60ea7f8501c5b3..e4b3556040c7f69266870589664b43261df61bad 100644
--- a/chrome/browser/extensions/extension_service_unittest.cc
+++ b/chrome/browser/extensions/extension_service_unittest.cc
@@ -84,6 +84,7 @@
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/external_provider_interface.h"
+#include "extensions/browser/install_flag.h"
#include "extensions/browser/management_policy.h"
#include "extensions/browser/pref_names.h"
#include "extensions/browser/test_management_policy.h"
@@ -6800,12 +6801,11 @@ TEST_F(ExtensionServiceTest, InstallBlacklistedExtension) {
// Installation should be allowed but the extension should never have been
// loaded and it should be blacklisted in prefs.
- service()->OnExtensionInstalled(extension.get(),
- syncer::StringOrdinal(),
- false /* has requirement errors */,
- extensions::BLACKLISTED_MALWARE,
- false /* is ephemeral */,
- false /* wait for idle */);
+ service()->OnExtensionInstalled(
+ extension.get(),
+ syncer::StringOrdinal(),
+ (extensions::kInstallFlagIsBlacklistedForMalware |
+ extensions::kInstallFlagInstallImmediately));
base::RunLoop().RunUntilIdle();
// Extension was installed but not loaded.
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/shared_module_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698