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

Unified Diff: chrome/browser/chromeos/mobile/mobile_activator.cc

Issue 1320533007: Componentize ssl_config_service_manager_pref.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/chromeos/mobile/mobile_activator.cc
diff --git a/chrome/browser/chromeos/mobile/mobile_activator.cc b/chrome/browser/chromeos/mobile/mobile_activator.cc
index 9e9daa781b3a9e735d37bccb3d7a8666a56d754a..74e8199e0dd062a9c2e436e2dd7e96dc70b03a6a 100644
--- a/chrome/browser/chromeos/mobile/mobile_activator.cc
+++ b/chrome/browser/chromeos/mobile/mobile_activator.cc
@@ -34,6 +34,7 @@
#include "chromeos/network/network_handler_callbacks.h"
#include "chromeos/network/network_state.h"
#include "chromeos/network/network_state_handler.h"
+#include "components/ssl_config/ssl_config_prefs.h"
#include "content/public/browser/browser_thread.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
#include "ui/chromeos/network/network_connect.h"
@@ -1096,8 +1097,7 @@ void MobileActivator::ReEnableCertRevocationChecking() {
if (!prefs)
return;
if (reenable_cert_check_) {
- prefs->SetBoolean(prefs::kCertRevocationCheckingEnabled,
- true);
+ prefs->SetBoolean(ssl_config::prefs::kCertRevocationCheckingEnabled, true);
reenable_cert_check_ = false;
}
}
@@ -1108,10 +1108,9 @@ void MobileActivator::DisableCertRevocationChecking() {
// TODO(rkc): We want to do this only if on Cellular.
PrefService* prefs = g_browser_process->local_state();
if (!reenable_cert_check_ &&
- prefs->GetBoolean(
- prefs::kCertRevocationCheckingEnabled)) {
+ prefs->GetBoolean(ssl_config::prefs::kCertRevocationCheckingEnabled)) {
reenable_cert_check_ = true;
- prefs->SetBoolean(prefs::kCertRevocationCheckingEnabled, false);
+ prefs->SetBoolean(ssl_config::prefs::kCertRevocationCheckingEnabled, false);
}
}

Powered by Google App Engine
This is Rietveld 408576698