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

Side by Side Diff: storage/browser/quota/quota_task.cc

Issue 1394563002: Add trace to the caller of QuotaManager::GetAvailableSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "storage/browser/quota/quota_task.h" 5 #include "storage/browser/quota/quota_task.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
14 #include "base/trace_event/trace_event.h"
michaeln 2015/10/09 22:10:39 use it or lose it
oshima 2015/10/09 22:36:48 removed
14 15
15 using base::TaskRunner; 16 using base::TaskRunner;
16 17
17 namespace storage { 18 namespace storage {
18 19
19 // QuotaTask --------------------------------------------------------------- 20 // QuotaTask ---------------------------------------------------------------
20 21
21 QuotaTask::~QuotaTask() { 22 QuotaTask::~QuotaTask() {
22 } 23 }
23 24
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void QuotaTaskObserver::RegisterTask(QuotaTask* task) { 70 void QuotaTaskObserver::RegisterTask(QuotaTask* task) {
70 running_quota_tasks_.insert(task); 71 running_quota_tasks_.insert(task);
71 } 72 }
72 73
73 void QuotaTaskObserver::UnregisterTask(QuotaTask* task) { 74 void QuotaTaskObserver::UnregisterTask(QuotaTask* task) {
74 DCHECK(running_quota_tasks_.find(task) != running_quota_tasks_.end()); 75 DCHECK(running_quota_tasks_.find(task) != running_quota_tasks_.end());
75 running_quota_tasks_.erase(task); 76 running_quota_tasks_.erase(task);
76 } 77 }
77 78
78 } // namespace storage 79 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698