summaryrefslogtreecommitdiffstats
path: root/cloud_print
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-08-26 18:57:07 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-27 01:58:13 +0000
commit14b72ec343d0de03d49c5dcd860a1fee9c7d4af5 (patch)
tree420c49ab08c1a2445cf2e82d0dda11180a7982f6 /cloud_print
parent68d8540b9f4f7b5e56fffeb5aea138170d875b5a (diff)
downloadchromium_src-14b72ec343d0de03d49c5dcd860a1fee9c7d4af5.zip
chromium_src-14b72ec343d0de03d49c5dcd860a1fee9c7d4af5.tar.gz
chromium_src-14b72ec343d0de03d49c5dcd860a1fee9c7d4af5.tar.bz2
Remove implicit conversions from scoped_refptr to T* in cloud_print/
This patch was generated by running the rewrite_scoped_refptr clang tool on a Linux build. BUG=110610 Review URL: https://codereview.chromium.org/513503002 Cr-Commit-Position: refs/heads/master@{#292076}
Diffstat (limited to 'cloud_print')
-rw-r--r--cloud_print/gcp20/prototype/cloud_print_request.cc2
-rw-r--r--cloud_print/gcp20/prototype/cloud_print_url_request_context_getter.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/cloud_print/gcp20/prototype/cloud_print_request.cc b/cloud_print/gcp20/prototype/cloud_print_request.cc
index d8baec2..6eebcb5 100644
--- a/cloud_print/gcp20/prototype/cloud_print_request.cc
+++ b/cloud_print/gcp20/prototype/cloud_print_request.cc
@@ -64,7 +64,7 @@ void CloudPrintRequest::Run(
fetcher_->AddExtraRequestHeader(base::StringPrintf(
"Authorization: Bearer \"%s\"", access_token.c_str()));
- fetcher_->SetRequestContext(context_getter);
+ fetcher_->SetRequestContext(context_getter.get());
fetcher_->Start();
MessageLoop::current()->PostDelayedTask(
diff --git a/cloud_print/gcp20/prototype/cloud_print_url_request_context_getter.cc b/cloud_print/gcp20/prototype/cloud_print_url_request_context_getter.cc
index b6bfae9..653f854 100644
--- a/cloud_print/gcp20/prototype/cloud_print_url_request_context_getter.cc
+++ b/cloud_print/gcp20/prototype/cloud_print_url_request_context_getter.cc
@@ -10,7 +10,7 @@
CloudPrintURLRequestContextGetter::CloudPrintURLRequestContextGetter(
scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
- DCHECK(task_runner);
+ DCHECK(task_runner.get());
network_task_runner_ = task_runner;
}