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

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

Issue 2622693002: Cleanup of static lists of schemes & origins that are created at startup. (Closed)
Patch Set: merge Created 3 years, 11 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 | « content/public/common/url_utils.h ('k') | content/public/test/content_test_suite_base.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 4133cb0154218575c62bd411e7c95b9bc70453b2..5ca69aa84a436a5ae3ecfd15e2ee14e864236c61 100644
--- a/content/public/common/url_utils.cc
+++ b/content/public/common/url_utils.cc
@@ -5,24 +5,19 @@
#include "content/public/common/url_utils.h"
#include "build/build_config.h"
-#include "content/common/savable_url_schemes.h"
+#include "content/common/url_schemes.h"
#include "content/public/common/url_constants.h"
-#include "url/gurl.h"
namespace content {
-const char* const* GetSavableSchemes() {
- return GetSavableSchemesInternal();
-}
-
bool HasWebUIScheme(const GURL& url) {
return url.SchemeIs(kChromeDevToolsScheme) ||
url.SchemeIs(kChromeUIScheme);
}
bool IsSavableURL(const GURL& url) {
- for (int i = 0; GetSavableSchemes()[i] != NULL; ++i) {
- if (url.SchemeIs(GetSavableSchemes()[i]))
+ for (auto& scheme : GetSavableSchemes()) {
+ if (url.SchemeIs(scheme))
return true;
}
return false;
« no previous file with comments | « content/public/common/url_utils.h ('k') | content/public/test/content_test_suite_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698