Use less temporary extension IDs during pack and unpack.
This fixes issues related to permission whitelists, which are based on the extension ID.
BUG=113696
TEST=ExtensionServiceTest.InstallWhitelistedExtension
Review URL: http://codereview.chromium.org/9365061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122009 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/sandboxed_extension_unpacker.h b/chrome/browser/extensions/sandboxed_extension_unpacker.h
index da64d5c..3461d452 100644
--- a/chrome/browser/extensions/sandboxed_extension_unpacker.h
+++ b/chrome/browser/extensions/sandboxed_extension_unpacker.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -242,6 +242,10 @@
// The public key that was extracted from the CRX header.
std::string public_key_;
+ // The extension's ID. This will be calculated from the public key in the crx
+ // header.
+ std::string extension_id_;
+
// Time at which unpacking started. Used to compute the time unpacking takes.
base::TimeTicks unpack_start_time_;