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

Unified Diff: chrome/service/cloud_print/cloud_print_connector.h

Issue 10065040: RefCounted types should not have public destructors, chrome/ remaining parts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/service/cloud_print/cloud_print_connector.h
diff --git a/chrome/service/cloud_print/cloud_print_connector.h b/chrome/service/cloud_print/cloud_print_connector.h
index a734b211e99983b9d9a9c05cdf6700e234c5f7b5..df16c12efb869180ee0fd65413af63e4d3802945 100644
--- a/chrome/service/cloud_print/cloud_print_connector.h
+++ b/chrome/service/cloud_print/cloud_print_connector.h
@@ -39,7 +39,6 @@ class CloudPrintConnector
const std::string& proxy_id,
const GURL& cloud_print_server_url,
const DictionaryValue* print_system_settings);
- virtual ~CloudPrintConnector();
bool Start();
void Stop();
@@ -73,6 +72,9 @@ class CloudPrintConnector
virtual std::string GetAuthHeader() OVERRIDE;
private:
+ friend class base::RefCountedThreadSafe<CloudPrintConnector>;
+ virtual ~CloudPrintConnector();
+
// Prototype for a response handler.
typedef CloudPrintURLFetcher::ResponseAction
(CloudPrintConnector::*ResponseHandler)(

Powered by Google App Engine
This is Rietveld 408576698