summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_protocols.cc
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-29 18:28:47 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-29 18:28:47 +0000
commit84c4eb3414d064cd1a836451b04cab3659528c0e (patch)
tree6c33f7991562ac3931f785bd982e3b72018396b0 /chrome/browser/extensions/extension_protocols.cc
parent3ee4b5348e0f213c31cc5cc5380bec88f2345f06 (diff)
downloadchromium_src-84c4eb3414d064cd1a836451b04cab3659528c0e.zip
chromium_src-84c4eb3414d064cd1a836451b04cab3659528c0e.tar.gz
chromium_src-84c4eb3414d064cd1a836451b04cab3659528c0e.tar.bz2
Enable ExtensionApiTest.Toolstrip and add additional debug output.
This output is testing the prospect that the cause of the flakiness is a race to the IO thread between the renderer that is requesting a chrome-extension page and the message to insert the correct mapping to service the request. BUG=22668 Review URL: http://codereview.chromium.org/251025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27516 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_protocols.cc')
-rw-r--r--chrome/browser/extensions/extension_protocols.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_protocols.cc b/chrome/browser/extensions/extension_protocols.cc
index 3a31b0e..3ff9c51 100644
--- a/chrome/browser/extensions/extension_protocols.cc
+++ b/chrome/browser/extensions/extension_protocols.cc
@@ -21,8 +21,10 @@ static URLRequestJob* CreateExtensionURLRequestJob(URLRequest* request,
// chrome-extension://extension-id/resource/path.js
FilePath directory_path = context->GetPathForExtension(request->url().host());
- if (directory_path.value().empty())
+ if (directory_path.value().empty()) {
+ LOG(WARNING) << "Failed to GetPathForExtension: " << request->url().host();
return NULL;
+ }
std::string resource = request->url().path();
FilePath path = Extension::GetResourcePath(directory_path, resource);