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

Side by Side Diff: webkit/browser/fileapi/file_system_quota_client.cc

Issue 23545016: Not creating ClientUsageTracker for unsupported storage type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/browser/fileapi/file_system_quota_client.h" 5 #include "webkit/browser/fileapi/file_system_quota_client.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 base::PostTaskAndReplyWithResult( 190 base::PostTaskAndReplyWithResult(
191 file_task_runner(), 191 file_task_runner(),
192 FROM_HERE, 192 FROM_HERE,
193 base::Bind(&DeleteOriginOnFileThread, 193 base::Bind(&DeleteOriginOnFileThread,
194 file_system_context_, 194 file_system_context_,
195 origin, 195 origin,
196 fs_type), 196 fs_type),
197 callback); 197 callback);
198 } 198 }
199 199
200 bool FileSystemQuotaClient::DoesSupport(quota::StorageType storage_type) const {
201 FileSystemType type = QuotaStorageTypeToFileSystemType(storage_type);
202 DCHECK(type != kFileSystemTypeUnknown);
203 return file_system_context_->IsSandboxFileSystem(type);
204 }
205
200 base::SequencedTaskRunner* FileSystemQuotaClient::file_task_runner() const { 206 base::SequencedTaskRunner* FileSystemQuotaClient::file_task_runner() const {
201 return file_system_context_->default_file_task_runner(); 207 return file_system_context_->default_file_task_runner();
202 } 208 }
203 209
204 } // namespace fileapi 210 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_quota_client.h ('k') | webkit/browser/quota/mock_storage_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698