Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: chrome/browser/extensions/extension_protocols.cc

Issue 251025: Enable ExtensionApiTest.Toolstrip and add additional debug output (Closed)
Patch Set: more cowbell Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_toolstrip_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_protocols.cc
diff --git a/chrome/browser/extensions/extension_protocols.cc b/chrome/browser/extensions/extension_protocols.cc
index 3a31b0e7c2b0fb844c3693bd4c1dbd5ab113f50d..3ff9c5100361aa9c76a9480b2b0f4c9af577f24c 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);
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_toolstrip_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698