summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2011-08-11 15:55:04 +0100
committerKristian Monsen <kristianm@google.com>2011-08-11 16:01:02 +0100
commit9639f9bb6f038fcff8d26463ba0ac698357eee46 (patch)
treebbe695f579fd299eceb382dc2640c57f5f33d532 /net
parent677d221f3db65a09edadef370b3cc360e71dd0ae (diff)
downloadexternal_chromium-9639f9bb6f038fcff8d26463ba0ac698357eee46.zip
external_chromium-9639f9bb6f038fcff8d26463ba0ac698357eee46.tar.gz
external_chromium-9639f9bb6f038fcff8d26463ba0ac698357eee46.tar.bz2
Part of fix for bug 5152544 Reduce the number of warning
Change-Id: I960864ea02e41fda180544a5d077f63c3c3119b9
Diffstat (limited to 'net')
-rw-r--r--net/url_request/url_request.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index b6d58ce..0c91e07 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -552,8 +552,13 @@ class URLRequest : public base::NonThreadSafe {
// Returns the priority level for this request.
RequestPriority priority() const { return priority_; }
void set_priority(RequestPriority priority) {
+#ifdef ANDROID
+ DCHECK_GE(static_cast<int>(priority), static_cast<int>(HIGHEST));
+ DCHECK_LT(static_cast<int>(priority), static_cast<int>(NUM_PRIORITIES));
+#else
DCHECK_GE(priority, HIGHEST);
DCHECK_LT(priority, NUM_PRIORITIES);
+#endif
priority_ = priority;
}