Index: chrome/browser/safe_browsing/client_side_detection_service.cc |
diff --git a/chrome/browser/safe_browsing/client_side_detection_service.cc b/chrome/browser/safe_browsing/client_side_detection_service.cc |
index 7c805c2a880f81fc37ec2d6a6187adc7c5e5593b..2d190b9e5b63805642867a16f7eed98b07cab6d3 100644 |
--- a/chrome/browser/safe_browsing/client_side_detection_service.cc |
+++ b/chrome/browser/safe_browsing/client_side_detection_service.cc |
@@ -16,6 +16,7 @@ |
#include "base/time.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/profiles/profile.h" |
+#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/safe_browsing/client_model.pb.h" |
#include "chrome/common/safe_browsing/csd.pb.h" |
@@ -270,6 +271,9 @@ void ClientSideDetectionService::SendModelToRenderers() { |
} |
void ClientSideDetectionService::ScheduleFetchModel(int64 delay_ms) { |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kSbDisableAutoUpdate)) |
+ return; |
noelutz
2013/04/17 22:36:45
There are two other places in this file where we i
mattm
2013/04/17 23:12:17
I think you're thinking of the MalwareDetails clas
noelutz
2013/04/17 23:36:48
You're absolutely right. Thanks for refreshing my
|
MessageLoop::current()->PostDelayedTask( |
FROM_HERE, |
base::Bind(&ClientSideDetectionService::StartFetchModel, |