Permission escalation when extension updates should trigger the install warning
when enabling the extension through the Extensions Management UI.

TBR=mpcomplete
BUG=http://crbug.com/30752
TEST=This requires an extension that autoupdates _and_ increases its
permissions. If you ignore the infobar that says it has been disabled, you
should still get the Install Warning dialog when you try to enable the
extension.


git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35480 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc
index ae251f7e5..e64956a 100644
--- a/chrome/browser/extensions/extensions_service.cc
+++ b/chrome/browser/extensions/extensions_service.cc
@@ -620,6 +620,7 @@
           // Extension has changed permissions significantly. Disable it. We
           // send a notification below.
           extension_prefs_->SetExtensionState(extension, Extension::DISABLED);
+          extension_prefs_->SetShowInstallWarningOnEnable(extension, true);
         }
       } else {
         // We already have the extension of the same or older version.