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

Unified Diff: chrome/browser/safe_browsing/client_side_model_loader.cc

Issue 2450993003: Componentize safe_browsing [1]: create component, move messages, constants and switches. (Closed)
Patch Set: fix compile Created 4 years 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/safe_browsing/client_side_model_loader.cc
diff --git a/chrome/browser/safe_browsing/client_side_model_loader.cc b/chrome/browser/safe_browsing/client_side_model_loader.cc
index 91bbddf32555ef5286a5fda4c38d287ace4e1937..5519b4108b0cdf907a65ff6815bc52de9dc30a40 100644
--- a/chrome/browser/safe_browsing/client_side_model_loader.cc
+++ b/chrome/browser/safe_browsing/client_side_model_loader.cc
@@ -16,11 +16,11 @@
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "chrome/browser/safe_browsing/protocol_manager.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/common/safe_browsing/client_model.pb.h"
#include "chrome/common/safe_browsing/csd.pb.h"
-#include "chrome/common/safe_browsing/safebrowsing_messages.h"
#include "components/data_use_measurement/core/data_use_user_data.h"
+#include "components/safe_browsing/common/safebrowsing_messages.h"
+#include "components/safe_browsing/common/safebrowsing_switches.h"
#include "components/variations/variations_associated_data.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_status_code.h"
@@ -195,7 +195,7 @@ void ModelLoader::EndFetch(ClientModelStatus status, base::TimeDelta max_age) {
void ModelLoader::ScheduleFetch(int64_t delay_ms) {
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kSbDisableAutoUpdate))
+ safe_browsing::switches::kSbDisableAutoUpdate))
return;
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698