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

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

Issue 9968066: Merge 130040 - Fix Crash in ExtensionSorting::SyncIfNeeded (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_sorting.cc
===================================================================
--- chrome/browser/extensions/extension_sorting.cc (revision 130242)
+++ chrome/browser/extensions/extension_sorting.cc (working copy)
@@ -505,7 +505,11 @@
extension_service_->GetInstalledExtension(extension_id);
if (ext) {
- CHECK(ext->is_app());
+ // It is possible for old extension to have ordinal values, but they
+ // shouldn't so we clear them.
+ if (!ext->is_app())
+ ClearOrdinals(extension_id);
+
extension_service_->SyncExtensionChangeIfNeeded(*ext);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698