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

Unified Diff: remoting/host/gaia_oauth_client.cc

Issue 10066042: Refcounted types should not have public destructors, remoting/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Few fixes 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
« no previous file with comments | « remoting/host/differ_block_unittest.cc ('k') | remoting/host/screen_recorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/gaia_oauth_client.cc
diff --git a/remoting/host/gaia_oauth_client.cc b/remoting/host/gaia_oauth_client.cc
index f20cb8254b3db630e7e1af97582bbb132217f8e7..d9d049f50549516a9b6114efa1f48211ae2cb269 100644
--- a/remoting/host/gaia_oauth_client.cc
+++ b/remoting/host/gaia_oauth_client.cc
@@ -31,15 +31,17 @@ class GaiaOAuthClient::Core
net::URLRequestContextGetter* request_context_getter)
: gaia_url_(gaia_url),
request_context_getter_(request_context_getter),
- delegate_(NULL) { }
-
- virtual ~Core() { }
+ delegate_(NULL) {
+ }
void RefreshToken(const OAuthClientInfo& oauth_client_info,
const std::string& refresh_token,
GaiaOAuthClient::Delegate* delegate);
private:
+ friend class base::RefCountedThreadSafe<Core>;
+ virtual ~Core() {}
+
void OnUrlFetchComplete(const net::URLRequestStatus& status,
int response_code,
const std::string& response);
« no previous file with comments | « remoting/host/differ_block_unittest.cc ('k') | remoting/host/screen_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698