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

Unified Diff: chrome/browser/browsing_data/browsing_data_file_system_helper.cc

Issue 16295003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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: chrome/browser/browsing_data/browsing_data_file_system_helper.cc
diff --git a/chrome/browser/browsing_data/browsing_data_file_system_helper.cc b/chrome/browser/browsing_data/browsing_data_file_system_helper.cc
index 049ba79f691338d04d39c09a54521dbbb1414c09..d5c16d2999735fb99c35a271145416addadabdd9 100644
--- a/chrome/browser/browsing_data/browsing_data_file_system_helper.cc
+++ b/chrome/browser/browsing_data/browsing_data_file_system_helper.cc
@@ -82,7 +82,7 @@ BrowsingDataFileSystemHelperImpl::BrowsingDataFileSystemHelperImpl(
fileapi::FileSystemContext* filesystem_context)
: filesystem_context_(filesystem_context),
is_fetching_(false) {
- DCHECK(filesystem_context_);
+ DCHECK(filesystem_context_.get());
}
BrowsingDataFileSystemHelperImpl::~BrowsingDataFileSystemHelperImpl() {
@@ -132,14 +132,11 @@ void BrowsingDataFileSystemHelperImpl::FetchFileSystemInfoInFileThread() {
// We can call these synchronous methods as we've already verified that
// we're running on the FILE thread.
int64 persistent_usage = quota_util->GetOriginUsageOnFileThread(
- filesystem_context_, current,
- fileapi::kFileSystemTypePersistent);
+ filesystem_context_.get(), current, fileapi::kFileSystemTypePersistent);
int64 temporary_usage = quota_util->GetOriginUsageOnFileThread(
- filesystem_context_, current,
- fileapi::kFileSystemTypeTemporary);
+ filesystem_context_.get(), current, fileapi::kFileSystemTypeTemporary);
int64 syncable_usage = quota_util->GetOriginUsageOnFileThread(
- filesystem_context_, current,
- fileapi::kFileSystemTypeSyncable);
+ filesystem_context_.get(), current, fileapi::kFileSystemTypeSyncable);
file_system_info_.push_back(
FileSystemInfo(
current,

Powered by Google App Engine
This is Rietveld 408576698