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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 8310014: Only send the client-side phishing model to a renderer if its profile has SafeBrowsing enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a comment as Noe suggested Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 5 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 break; 1360 break;
1361 } 1361 }
1362 } 1362 }
1363 1363
1364 if (enable) 1364 if (enable)
1365 Start(); 1365 Start();
1366 else 1366 else
1367 Stop(); 1367 Stop();
1368 1368
1369 if (csd_service_.get()) 1369 if (csd_service_.get())
1370 csd_service_->SetEnabled(enable); 1370 csd_service_->SetEnabledAndRefreshState(enable);
1371 if (download_service_.get()) 1371 if (download_service_.get())
1372 download_service_->SetEnabled(enable); 1372 download_service_->SetEnabled(enable);
1373 } 1373 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698