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

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

Issue 11465016: Dedupe code in SetIdleInstallInfo(), FinishIdleInstallInfo() and OnExtensionInstalled(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittest. Created 8 years 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.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 6ca023859a6f4daf4920098af5aa838332581882..6d2dea50993cfb1588df200afbd45b4b2640e5f2 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -2460,7 +2460,8 @@ void ExtensionService::OnExtensionInstalled(
if (ShouldDelayExtensionUpdate(id, wait_for_idle)) {
extension_prefs_->SetIdleInstallInfo(
extension,
- initial_enable ? Extension::ENABLED : Extension::DISABLED);
+ initial_enable ? Extension::ENABLED : Extension::DISABLED,
+ page_ordinal);
// Transfer ownership of |extension|.
pending_extension_updates_.Insert(extension);

Powered by Google App Engine
This is Rietveld 408576698