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

Unified Diff: chrome/browser/google/google_util.h

Issue 11186002: Add a SafeSearch preference, policy and implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor last changes. Merged with the latest version from the tree. Created 8 years, 1 month 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/google/google_util.h
diff --git a/chrome/browser/google/google_util.h b/chrome/browser/google/google_util.h
index b398bfac8242d7c8d3174693ed976632a7632553..f4c4028481c55830377b46f8c91602f50e97eb06 100644
--- a/chrome/browser/google/google_util.h
+++ b/chrome/browser/google/google_util.h
@@ -95,6 +95,10 @@ bool IsOrganicFirstRun(const std::string& brand);
// True if |brand| is an internet cafe brand code.
bool IsInternetCafeBrandCode(const std::string& brand);
+// A URL supports SafeSearch if it is either a Google Home Page URL or a Google
+// Search URL.
Pam (message me for reviews) 2012/11/02 14:00:35 This comment describes the implementation. More de
Sergiu 2012/11/02 20:38:43 Done.
+bool SupportsSafeSearch(const std::string& url);
+
// This class is meant to be used only from test code, and sets the brand
// code returned by the function GetBrand() above while the object exists.
class BrandForTesting {

Powered by Google App Engine
This is Rietveld 408576698