Change --load-extension flag so the extensions don't persist across restart.

I made --load-extension use a different Location type than other unpacked
extensions, but they are still treated the same in most cases.

BUG=73330
[email protected]


Review URL: https://chromiumcodereview.appspot.com/12345002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184887 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 91d901b..a64dfab4 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -822,7 +822,7 @@
                                            external_uninstall);
 
   // Tell the backend to start deleting installed extensions on the file thread.
-  if (Manifest::LOAD != extension->location()) {
+  if (!Manifest::IsUnpackedLocation(extension->location())) {
     if (!GetFileTaskRunner()->PostTask(
             FROM_HERE,
             base::Bind(
@@ -2224,7 +2224,7 @@
   if (is_extension_upgrade) {
     // Other than for unpacked extensions, CrxInstaller should have guaranteed
     // that we aren't downgrading.
-    if (extension->location() != Manifest::LOAD)
+    if (!Manifest::IsUnpackedLocation(extension->location()))
       CHECK_GE(extension->version()->CompareTo(*(old->version())), 0);
 
     // Extensions get upgraded if the privileges are allowed to increase or