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

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

Issue 11186002: Add a SafeSearch preference, policy and implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor improvement and bugfix. 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.cc
diff --git a/chrome/browser/google/google_util.cc b/chrome/browser/google/google_util.cc
index 0d47f5675ab91f8479ddee5385c3c2b49f715810..082dfc86b6e1ce3a0b5aff46ab08967710a37fd3 100644
--- a/chrome/browser/google/google_util.cc
+++ b/chrome/browser/google/google_util.cc
@@ -322,4 +322,8 @@ bool IsInternetCafeBrandCode(const std::string& brand) {
return found != end;
}
+bool SupportsSafeSearch(const std::string& url) {
+ return IsGoogleSearchUrl(url) || IsGoogleHomePageUrl(url);
Peter Kasting 2012/11/02 20:59:11 Don't add this. Have the lone caller check these
Sergiu 2012/11/02 22:09:58 Removed and added it back as direct call.
+}
+
} // namespace google_util

Powered by Google App Engine
This is Rietveld 408576698