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

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

Issue 14225020: ClientSideDetectionService model fetch should honor kSbDisableAutoUpdate switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/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,
« 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