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

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

Issue 2667513003: Remove some LazyInstance use in base/ (Closed)
Patch Set: no message_window Created 3 years, 10 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_manager.h" 5 #include "storage/browser/quota/quota_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <functional> 11 #include <functional>
12 #include <limits> 12 #include <limits>
13 #include <memory> 13 #include <memory>
14 #include <utility> 14 #include <utility>
15 15
16 #include "base/bind.h" 16 #include "base/bind.h"
17 #include "base/bind_helpers.h" 17 #include "base/bind_helpers.h"
18 #include "base/command_line.h" 18 #include "base/command_line.h"
19 #include "base/files/file_util.h" 19 #include "base/files/file_util.h"
20 #include "base/macros.h" 20 #include "base/macros.h"
21 #include "base/metrics/histogram_macros.h" 21 #include "base/metrics/histogram_macros.h"
22 #include "base/numerics/safe_conversions.h" 22 #include "base/numerics/safe_conversions.h"
23 #include "base/profiler/scoped_tracker.h" 23 #include "base/profiler/scoped_tracker.h"
24 #include "base/sequenced_task_runner.h" 24 #include "base/sequenced_task_runner.h"
25 #include "base/single_thread_task_runner.h" 25 #include "base/single_thread_task_runner.h"
26 #include "base/strings/string_number_conversions.h" 26 #include "base/strings/string_number_conversions.h"
27 #include "base/sys_info.h" 27 #include "base/sys_info.h"
28 #include "base/task_runner_util.h" 28 #include "base/task_runner_util.h"
29 #include "base/threading/thread_restrictions.h"
29 #include "base/time/time.h" 30 #include "base/time/time.h"
30 #include "base/trace_event/trace_event.h" 31 #include "base/trace_event/trace_event.h"
31 #include "net/base/url_util.h" 32 #include "net/base/url_util.h"
32 #include "storage/browser/quota/client_usage_tracker.h" 33 #include "storage/browser/quota/client_usage_tracker.h"
33 #include "storage/browser/quota/quota_manager_proxy.h" 34 #include "storage/browser/quota/quota_manager_proxy.h"
34 #include "storage/browser/quota/quota_temporary_storage_evictor.h" 35 #include "storage/browser/quota/quota_temporary_storage_evictor.h"
35 #include "storage/browser/quota/storage_monitor.h" 36 #include "storage/browser/quota/storage_monitor.h"
36 #include "storage/browser/quota/usage_tracker.h" 37 #include "storage/browser/quota/usage_tracker.h"
37 #include "storage/common/quota/quota_types.h" 38 #include "storage/common/quota/quota_types.h"
38 39
(...skipping 1816 matching lines...) Expand 10 before | Expand all | Expand 10 after
1855 int64_t total = base::SysInfo::AmountOfTotalDiskSpace(path); 1856 int64_t total = base::SysInfo::AmountOfTotalDiskSpace(path);
1856 if (total < 0) 1857 if (total < 0)
1857 return false; 1858 return false;
1858 1859
1859 *available_space = static_cast<uint64_t>(available); 1860 *available_space = static_cast<uint64_t>(available);
1860 *total_size = static_cast<uint64_t>(total); 1861 *total_size = static_cast<uint64_t>(total);
1861 return true; 1862 return true;
1862 } 1863 }
1863 1864
1864 } // namespace storage 1865 } // namespace storage
OLDNEW
« base/trace_event/trace_log.cc ('K') | « content/utility/in_process_utility_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698