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

Unified Diff: url/gurl.h

Issue 46303005: Fix chrome upload with content uri (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
Index: url/gurl.h
diff --git a/url/gurl.h b/url/gurl.h
index d4ea10fbcf09ccf43461c9b801393092d79e0b30..0cadebf92dd7a3fb77ebeaddd5167763d31d6fe9 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -221,6 +221,13 @@ class URL_EXPORT GURL {
return SchemeIs("filesystem");
}
+#if defined(OS_ANDROID)
+ // Content URLs need to be treated differently in some cases.
+ bool SchemeIsContent() const {
+ return SchemeIs("content");
+ }
+#endif
+
// If the scheme indicates a secure connection
bool SchemeIsSecure() const {
return SchemeIs("https") || SchemeIs("wss") ||

Powered by Google App Engine
This is Rietveld 408576698