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

Side by Side Diff: components/leveldb/env_mojo.cc

Issue 1729433002: Include errno.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/leveldb/env_mojo.h" 5 #include "components/leveldb/env_mojo.h"
6 6
7 #include <errno.h>
8
7 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
8 #include "third_party/leveldatabase/chromium_logger.h" 10 #include "third_party/leveldatabase/chromium_logger.h"
9 #include "third_party/leveldatabase/src/include/leveldb/status.h" 11 #include "third_party/leveldatabase/src/include/leveldb/status.h"
10 12
11 namespace leveldb { 13 namespace leveldb {
12 14
13 namespace { 15 namespace {
14 16
15 const base::FilePath::CharType table_extension[] = FILE_PATH_LITERAL(".ldb"); 17 const base::FilePath::CharType table_extension[] = FILE_PATH_LITERAL(".ldb");
16 18
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 *result = NULL; 374 *result = NULL;
373 return MakeIOError(fname, "Unable to create log file", 375 return MakeIOError(fname, "Unable to create log file",
374 leveldb_env::kNewLogger, f->error_details()); 376 leveldb_env::kNewLogger, f->error_details());
375 } else { 377 } else {
376 *result = new leveldb::ChromiumLogger(f.release()); 378 *result = new leveldb::ChromiumLogger(f.release());
377 return Status::OK(); 379 return Status::OK();
378 } 380 }
379 } 381 }
380 382
381 } // namespace leveldb 383 } // namespace leveldb
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698