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

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

Issue 5544008: Add a browser test for safebrowsing service.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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/safe_browsing_service.cc
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_service.cc (revision 69048)
+++ chrome/browser/safe_browsing/safe_browsing_service.cc (working copy)
@@ -433,14 +433,16 @@
cmdline->GetSwitchValueASCII(switches::kSbMacKeyURLPrefix) :
kSbDefaultMacKeyURLPrefix;
- protocol_manager_ = new SafeBrowsingProtocolManager(this,
- client_name,
- client_key,
- wrapped_key,
- request_context_getter,
- info_url_prefix,
- mackey_url_prefix,
- disable_auto_update);
+ DCHECK(!protocol_manager_);
+ protocol_manager_ =
+ SafeBrowsingProtocolManager::Create(this,
+ client_name,
+ client_key,
+ wrapped_key,
+ request_context_getter,
+ info_url_prefix,
+ mackey_url_prefix,
+ disable_auto_update);
protocol_manager_->Initialize();
}

Powered by Google App Engine
This is Rietveld 408576698