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

Unified Diff: chrome/browser/chromeos/extensions/file_handler_util.cc

Issue 9700011: Convert file url to lowercase to make it match a file handler pattern. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_handler_util.cc
diff --git a/chrome/browser/chromeos/extensions/file_handler_util.cc b/chrome/browser/chromeos/extensions/file_handler_util.cc
index 743f8c548cd5edbbddf5719ee1d67013a78625fb..eceab137117e76c4af104311b836097857a84b46 100644
--- a/chrome/browser/chromeos/extensions/file_handler_util.cc
+++ b/chrome/browser/chromeos/extensions/file_handler_util.cc
@@ -227,7 +227,9 @@ bool FindCommonTasks(Profile* profile,
bool GetDefaultTask(
Profile* profile, const GURL& url, const FileBrowserHandler** handler) {
std::vector<GURL> file_urls;
- file_urls.push_back(url);
+ std::string url_spec = url.spec();
+ StringToLowerASCII(&url_spec);
SeRya 2012/03/14 09:08:55 How about non-ASCII patterns? A third party app ma
Vladislav Kaznacheev 2012/03/14 11:08:20 Done.
+ file_urls.push_back(GURL(url_spec));
LastUsedHandlerList common_tasks;
if (!FindCommonTasks(profile, file_urls, &common_tasks))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698