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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 397343002: [Safe Browsing] Use right function to clear preference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 40904e3c49b1282bd8fa2932d82522c5c03eae5d..c7daad6428718f6a87adb09e40db941da26ce6e2 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -853,10 +853,10 @@ void ProfileImpl::OnPrefsLoaded(bool success) {
prefs_->SetBoolean(prefs::kSessionExitedCleanly, true);
#if defined(OS_ANDROID) && defined(FULL_SAFE_BROWSING)
- // Force safe browsing to false in the case we need to roll back for users
- // enrolled in Finch trial before.
+ // Clear safe browsing setting in the case we need to roll back
+ // for users enrolled in Finch trial before.
if (!SafeBrowsingService::IsEnabledByFieldTrial())
- prefs_->SetBoolean(prefs::kSafeBrowsingEnabled, false);
+ prefs_->ClearPref(prefs::kSafeBrowsingEnabled);
#endif
g_browser_process->profile_manager()->InitProfileUserPrefs(this);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698