diff options
author | peter@chromium.org <peter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-12 20:37:48 +0000 |
---|---|---|
committer | peter@chromium.org <peter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-12 20:37:48 +0000 |
commit | 74ff57fa0e013aa2a67e70e0ec7c8ee3f0e74c24 (patch) | |
tree | 8d79b233aa77f8150f82cf80b60091d907bc429b /net/android/network_library.cc | |
parent | 87ff6ad6509e2ad5f09a410afeca9f1b8c2d2fc5 (diff) | |
download | chromium_src-74ff57fa0e013aa2a67e70e0ec7c8ee3f0e74c24.zip chromium_src-74ff57fa0e013aa2a67e70e0ec7c8ee3f0e74c24.tar.gz chromium_src-74ff57fa0e013aa2a67e70e0ec7c8ee3f0e74c24.tar.bz2 |
Have a clearer error message for Android's GetMimeTypeFromExtension
The warning is triggered on various layout tests for WebKit, so having
a clearer error showing the extension for which we can't get a mime
type helps in finding the right solution.
BUG=
Review URL: https://chromiumcodereview.appspot.com/10911244
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156369 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/android/network_library.cc')
-rw-r--r-- | net/android/network_library.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/android/network_library.cc b/net/android/network_library.cc index 64f11aa..ce55679 100644 --- a/net/android/network_library.cc +++ b/net/android/network_library.cc @@ -87,7 +87,8 @@ bool GetMimeTypeFromExtension(const std::string& extension, env, extension_string.obj()); if (!ret.obj()) { - LOG(WARNING) << "Call to getMimeTypeFromExtension failed"; + LOG(WARNING) << "Call to getMimeTypeFromExtension failed for extension: " + << extension; return false; } *result = ConvertJavaStringToUTF8(ret); |