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

Unified Diff: chrome/browser/ui/webui/settings_utils.h

Issue 1841083005: Options: disallow bad URLs from being entered as startup pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@startup-browser-proxy
Patch Set: fixes Created 4 years, 9 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: chrome/browser/ui/webui/settings_utils.h
diff --git a/chrome/browser/ui/webui/settings_utils.h b/chrome/browser/ui/webui/settings_utils.h
index 9f95aa4fc770258bd493df559e0573dd5758cd7f..1f198ccf1838e36d343de8b465e0b5e46e386d2d 100644
--- a/chrome/browser/ui/webui/settings_utils.h
+++ b/chrome/browser/ui/webui/settings_utils.h
@@ -5,8 +5,12 @@
#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_UTILS_H_
#define CHROME_BROWSER_UI_WEBUI_SETTINGS_UTILS_H_
+#include <string>
+
#include "base/macros.h"
+class GURL;
+
namespace content {
class WebContents;
}
@@ -19,6 +23,11 @@ void ShowNetworkProxySettings(content::WebContents* web_contents);
// Invoke UI for SSL certificates.
void ShowManageSSLCertificates(content::WebContents* web_contents);
+// Returns whether |url_string| is a valid startup page. |url_fixed| is set to
+// the fixed up, valid URL if not null.
+bool FixupAndValidateStartupPage(const std::string& url_string,
+ GURL* url_fixed);
+
} // namespace settings_utils
#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698