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

Unified Diff: third_party/leveldatabase/env_chromium_stdio.cc

Issue 416633002: Cleanup Chrome's LevelDB env to conform to C++ style guidelines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed snprintf with pid_t Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/leveldatabase/env_chromium_stdio.h ('k') | third_party/leveldatabase/env_chromium_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/leveldatabase/env_chromium_stdio.cc
diff --git a/third_party/leveldatabase/env_chromium_stdio.cc b/third_party/leveldatabase/env_chromium_stdio.cc
index 8abc266237b0fae5a82e6cbb4b5cb8ce4ca31d0b..165b9fb24090340a10cae06930a216cf9f974fad 100644
--- a/third_party/leveldatabase/env_chromium_stdio.cc
+++ b/third_party/leveldatabase/env_chromium_stdio.cc
@@ -2,27 +2,38 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
+#include "third_party/leveldatabase/env_chromium_stdio.h"
+
+#if defined(OS_POSIX)
+#include <dirent.h>
#include <errno.h>
+#include <fcntl.h>
+#include <sys/resource.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#endif
+
+#if defined(OS_WIN)
+#include <io.h>
+#endif
#include "base/debug/trace_event.h"
#include "base/metrics/histogram.h"
#include "base/posix/eintr_wrapper.h"
#include "base/strings/utf_string_conversions.h"
-#include "chromium_logger.h"
-#include "env_chromium_stdio.h"
+#include "third_party/leveldatabase/chromium_logger.h"
#if defined(OS_WIN)
-#include <io.h>
#include "base/win/win_util.h"
#endif
-#if defined(OS_POSIX)
-#include <dirent.h>
-#include <fcntl.h>
-#include <sys/resource.h>
-#endif
-
-using namespace leveldb;
+using leveldb::ChromiumLogger;
+using leveldb::Logger;
+using leveldb::RandomAccessFile;
+using leveldb::SequentialFile;
+using leveldb::Slice;
+using leveldb::Status;
+using leveldb::WritableFile;
namespace leveldb_env {
@@ -176,7 +187,7 @@ Status ChromiumWritableFile::SyncParent() {
int saved_errno = errno;
s = MakeIOError(
parent_dir_, strerror(saved_errno), kSyncParent, saved_errno);
- };
+ }
close(parent_fd);
#endif
return s;
« no previous file with comments | « third_party/leveldatabase/env_chromium_stdio.h ('k') | third_party/leveldatabase/env_chromium_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698