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

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

Issue 10068036: RefCounted types should not have public destructors, chrome/browser/ part 5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix Created 8 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
Index: chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc b/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
index a330994e1adcdbb9b5088410772a96b9afc954a0..5ad620b70fdad2153da484466859fd1bc8bf807f 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
@@ -506,9 +506,9 @@ class TestSBClient
: public base::RefCountedThreadSafe<TestSBClient>,
public SafeBrowsingService::Client {
public:
- TestSBClient() : result_(SafeBrowsingService::SAFE),
- safe_browsing_service_(g_browser_process->
- safe_browsing_service()) {
+ TestSBClient()
+ : result_(SafeBrowsingService::SAFE),
+ safe_browsing_service_(g_browser_process->safe_browsing_service()) {
}
int GetResult() {
@@ -532,6 +532,9 @@ class TestSBClient
}
private:
+ friend class base::RefCountedThreadSafe<TestSBClient>;
+ virtual ~TestSBClient() {}
+
void CheckDownloadUrlOnIOThread(const std::vector<GURL>& url_chain) {
safe_browsing_service_->CheckDownloadUrl(url_chain, this);
}
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/browser/safe_browsing/safe_browsing_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698