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

Unified Diff: content/public/common/url_utils.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/common/url_utils.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/url_utils.cc
diff --git a/content/public/common/url_utils.cc b/content/public/common/url_utils.cc
index f977df0e0f085bc37df64413148944cb29c886ec..40cd67c24813cbde7675e2e2c614f8f8e96975cd 100644
--- a/content/public/common/url_utils.cc
+++ b/content/public/common/url_utils.cc
@@ -4,19 +4,13 @@
#include "content/public/common/url_utils.h"
-#include "base/base_switches.h"
-#include "base/command_line.h"
-#include "base/logging.h"
#include "build/build_config.h"
#include "content/common/savable_url_schemes.h"
-#include "content/public/common/content_switches.h"
#include "content/public/common/url_constants.h"
#include "url/gurl.h"
namespace content {
-static size_t g_max_url_size = 2 * 1024 * 1024;
-
const char* const* GetSavableSchemes() {
return GetSavableSchemesInternal();
}
@@ -37,17 +31,4 @@ bool IsSavableURL(const GURL& url) {
return false;
}
-#if defined(OS_ANDROID)
-void SetMaxURLChars(size_t max_chars) {
- // Check that it is not used by a multiprocesses embedder
- base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
- CHECK(cmd->HasSwitch(switches::kSingleProcess));
- g_max_url_size = max_chars;
-}
-#endif
-
-size_t GetMaxURLChars() {
- return g_max_url_size;
-}
-
} // namespace content
« no previous file with comments | « content/public/common/url_utils.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698