diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-06 06:17:54 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-06 06:17:54 +0000 |
commit | 84ac7f362e565c096851a783ca7163b78e19b659 (patch) | |
tree | 7f671e9c025e4e4b37468240e9be7a28926f6a7c /chrome/browser/extensions/extension_browsertest.cc | |
parent | 17492f531825be1522991579c1a1bd6af2d8c4b1 (diff) | |
download | chromium_src-84ac7f362e565c096851a783ca7163b78e19b659.zip chromium_src-84ac7f362e565c096851a783ca7163b78e19b659.tar.gz chromium_src-84ac7f362e565c096851a783ca7163b78e19b659.tar.bz2 |
Generate IDs for --load-extension by hashing the path instead
of incrementing a static counter.
BUG=21281
TEST=Load an unpacked extension from chrome://extensions/ that
does not have an ID in its manifest. The resulting ID should
be random-looking, not something like "aaaaaa".
Review URL: http://codereview.chromium.org/256049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28095 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_browsertest.cc')
-rw-r--r-- | chrome/browser/extensions/extension_browsertest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_browsertest.cc b/chrome/browser/extensions/extension_browsertest.cc index c7e37fa..b7acc21 100644 --- a/chrome/browser/extensions/extension_browsertest.cc +++ b/chrome/browser/extensions/extension_browsertest.cc @@ -199,6 +199,7 @@ void ExtensionBrowserTest::Observe(NotificationType type, const NotificationDetails& details) { switch (type.value) { case NotificationType::EXTENSION_LOADED: + last_loaded_extension_id_ = Details<Extension>(details).ptr()->id(); std::cout << "Got EXTENSION_LOADED notification.\n"; MessageLoopForUI::current()->Quit(); break; |