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

Unified Diff: content/browser/renderer_host/pepper/quota_reservation.cc

Issue 501033003: Remove implicit conversions from scoped_refptr to T* in content/browser/renderer_host/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: content/browser/renderer_host/pepper/quota_reservation.cc
diff --git a/content/browser/renderer_host/pepper/quota_reservation.cc b/content/browser/renderer_host/pepper/quota_reservation.cc
index 5c4fa26f968fe6f273b19d17c2374620e58f4767..7ef2be7d548736626ab3b29258abf8f2bf8e4d51 100644
--- a/content/browser/renderer_host/pepper/quota_reservation.cc
+++ b/content/browser/renderer_host/pepper/quota_reservation.cc
@@ -51,7 +51,7 @@ QuotaReservation::~QuotaReservation() {
int64_t QuotaReservation::OpenFile(int32_t id,
const storage::FileSystemURL& url) {
base::FilePath platform_file_path;
- if (file_system_context_) {
+ if (file_system_context_.get()) {
base::File::Error error =
file_system_context_->operation_runner()->SyncGetPlatformPath(
url, &platform_file_path);
@@ -117,7 +117,7 @@ void QuotaReservation::GotReservedQuota(const ReserveQuotaCallback& callback,
for (FileMap::iterator it = files_.begin(); it != files_.end(); ++it)
file_sizes[it->first] = it->second->GetMaxWrittenOffset();
- if (file_system_context_) {
+ if (file_system_context_.get()) {
BrowserThread::PostTask(
BrowserThread::IO,
FROM_HERE,
@@ -130,8 +130,9 @@ void QuotaReservation::GotReservedQuota(const ReserveQuotaCallback& callback,
}
void QuotaReservation::DeleteOnCorrectThread() const {
- if (file_system_context_ && !file_system_context_->default_file_task_runner()
- ->RunsTasksOnCurrentThread()) {
+ if (file_system_context_.get() &&
+ !file_system_context_->default_file_task_runner()
+ ->RunsTasksOnCurrentThread()) {
file_system_context_->default_file_task_runner()->DeleteSoon(FROM_HERE,
this);
} else {

Powered by Google App Engine
This is Rietveld 408576698