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

Unified Diff: chrome/browser/download/download_safe_browsing_client.h

Issue 7134017: Make safe browsing work in a multi-profile environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: addressed sky's nit Created 9 years, 5 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/download/download_safe_browsing_client.h
===================================================================
--- chrome/browser/download/download_safe_browsing_client.h (revision 92179)
+++ chrome/browser/download/download_safe_browsing_client.h (working copy)
@@ -35,9 +35,10 @@
DownloadSBClient(int32 download_id,
const std::vector<GURL>& url_chain,
- const GURL& referrer_url);
+ const GURL& referrer_url,
+ bool safe_browsing_enabled);
- // Call safebrowsing service to verifiy the download.
+ // Call safebrowsing service to verify the download.
// For each DownloadSBClient instance, either CheckDownloadUrl or
// CheckDownloadHash can be called, and be called only once.
// DownloadSBClient instance.
@@ -110,6 +111,10 @@
// When a safebrowsing check starts, for stats purpose.
base::TimeTicks start_time_;
+ // Whether the profile from which this client was created has enabled the
+ // safe browsing service.
+ bool safe_browsing_enabled_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadSBClient);
};
« no previous file with comments | « chrome/browser/download/download_manager.cc ('k') | chrome/browser/download/download_safe_browsing_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698