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

Unified Diff: content/public/common/common_param_traits.cc

Issue 1497743005: Allow huge data: URIs only via WebView.loadDataWithBaseUrl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the test Created 5 years 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 | « content/public/browser/navigation_entry.h ('k') | content/public/common/content_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/common_param_traits.cc
diff --git a/content/public/common/common_param_traits.cc b/content/public/common/common_param_traits.cc
index dfe7a7fa4561b5a3e558b66a192ed3e963fa7739..ab16aea1c8b530928d47b4cbc092321bfb2608ab 100644
--- a/content/public/common/common_param_traits.cc
+++ b/content/public/common/common_param_traits.cc
@@ -9,14 +9,13 @@
#include "content/public/common/content_constants.h"
#include "content/public/common/page_state.h"
#include "content/public/common/referrer.h"
-#include "content/public/common/url_utils.h"
#include "net/base/host_port_pair.h"
#include "net/base/ip_endpoint.h"
namespace IPC {
void ParamTraits<GURL>::Write(Message* m, const GURL& p) {
- if (p.possibly_invalid_spec().length() > content::GetMaxURLChars()) {
+ if (p.possibly_invalid_spec().length() > content::kMaxURLChars) {
m->WriteString(std::string());
return;
}
@@ -40,7 +39,7 @@ bool ParamTraits<GURL>::Read(const Message* m,
base::PickleIterator* iter,
GURL* p) {
std::string s;
- if (!iter->ReadString(&s) || s.length() > content::GetMaxURLChars()) {
+ if (!iter->ReadString(&s) || s.length() > content::kMaxURLChars) {
*p = GURL();
return false;
}
« no previous file with comments | « content/public/browser/navigation_entry.h ('k') | content/public/common/content_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698