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

Unified Diff: remoting/client/plugin/pepper_token_fetcher.cc

Issue 15927028: Update remoting/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: remoting/client/plugin/pepper_token_fetcher.cc
diff --git a/remoting/client/plugin/pepper_token_fetcher.cc b/remoting/client/plugin/pepper_token_fetcher.cc
index 5f08fe957e744f411c91d5b39f78a4af2f971a1a..7a7aca98a5dc31f775722ccff90114b06db19259 100644
--- a/remoting/client/plugin/pepper_token_fetcher.cc
+++ b/remoting/client/plugin/pepper_token_fetcher.cc
@@ -22,7 +22,7 @@ void PepperTokenFetcher::FetchThirdPartyToken(
const GURL& token_url,
const std::string& scope,
const TokenFetchedCallback& token_fetched_callback) {
- if (plugin_) {
+ if (plugin_.get()) {
token_fetched_callback_ = token_fetched_callback;
plugin_->FetchThirdPartyToken(token_url, host_public_key_, scope,
weak_factory_.GetWeakPtr());

Powered by Google App Engine
This is Rietveld 408576698