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

Side by Side Diff: storage/browser/fileapi/sandbox_directory_database.cc

Issue 2479093002: Migrate more files to histogram_macros.h from histogram.h. (Closed)
Patch Set: Created 4 years, 1 month 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 (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 "storage/browser/fileapi/sandbox_directory_database.h" 5 #include "storage/browser/fileapi/sandbox_directory_database.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <algorithm> 11 #include <algorithm>
12 #include <memory> 12 #include <memory>
13 #include <set> 13 #include <set>
14 #include <stack> 14 #include <stack>
15 15
16 #include "base/files/file_enumerator.h" 16 #include "base/files/file_enumerator.h"
17 #include "base/files/file_util.h" 17 #include "base/files/file_util.h"
18 #include "base/location.h" 18 #include "base/location.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/metrics/histogram.h" 20 #include "base/metrics/histogram_macros.h"
21 #include "base/pickle.h" 21 #include "base/pickle.h"
22 #include "base/strings/string_number_conversions.h" 22 #include "base/strings/string_number_conversions.h"
23 #include "base/strings/string_util.h" 23 #include "base/strings/string_util.h"
24 #include "storage/browser/fileapi/file_system_usage_cache.h" 24 #include "storage/browser/fileapi/file_system_usage_cache.h"
25 #include "storage/common/fileapi/file_system_util.h" 25 #include "storage/common/fileapi/file_system_util.h"
26 #include "third_party/leveldatabase/env_chromium.h" 26 #include "third_party/leveldatabase/env_chromium.h"
27 #include "third_party/leveldatabase/src/include/leveldb/db.h" 27 #include "third_party/leveldatabase/src/include/leveldb/db.h"
28 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" 28 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h"
29 29
30 namespace { 30 namespace {
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 952
953 void SandboxDirectoryDatabase::HandleError( 953 void SandboxDirectoryDatabase::HandleError(
954 const tracked_objects::Location& from_here, 954 const tracked_objects::Location& from_here,
955 const leveldb::Status& status) { 955 const leveldb::Status& status) {
956 LOG(ERROR) << "SandboxDirectoryDatabase failed at: " 956 LOG(ERROR) << "SandboxDirectoryDatabase failed at: "
957 << from_here.ToString() << " with error: " << status.ToString(); 957 << from_here.ToString() << " with error: " << status.ToString();
958 db_.reset(); 958 db_.reset();
959 } 959 }
960 960
961 } // namespace storage 961 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_storage_context.cc ('k') | storage/browser/fileapi/sandbox_origin_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698