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

Unified Diff: chrome/browser/extensions/unpacked_installer.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/unpacked_installer.cc
diff --git a/chrome/browser/extensions/unpacked_installer.cc b/chrome/browser/extensions/unpacked_installer.cc
index 23b86ebd104f1b4724306c18aef57d5f027b01b0..cb7966f8908b27b491430611cfdbff67953ee48d 100644
--- a/chrome/browser/extensions/unpacked_installer.cc
+++ b/chrome/browser/extensions/unpacked_installer.cc
@@ -22,6 +22,7 @@
#include "content/public/browser/browser_thread.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
+#include "extensions/browser/install_flag.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_l10n_util.h"
#include "extensions/common/file_util.h"
@@ -318,13 +319,9 @@ void UnpackedInstaller::ConfirmInstall() {
PermissionsUpdater perms_updater(service_weak_->profile());
perms_updater.GrantActivePermissions(installer_.extension().get());
- service_weak_->OnExtensionInstalled(
- installer_.extension().get(),
- syncer::StringOrdinal(),
- false /* no requirement errors */,
- NOT_BLACKLISTED,
- false /* not ephemeral */,
- false /* don't wait for idle */);
+ service_weak_->OnExtensionInstalled(installer_.extension().get(),
+ syncer::StringOrdinal(),
+ kInstallFlagInstallImmediately);
}
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/test_extension_prefs.cc ('k') | chrome/browser/extensions/updater/extension_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698