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

Unified Diff: third_party/leveldatabase/port/port_chromium.cc

Issue 800783003: LevelDB: Removed global prefix from base namespace: "::base" -> "base" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some git cl format changes. Created 6 years 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/port/port_chromium.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/leveldatabase/port/port_chromium.cc
diff --git a/third_party/leveldatabase/port/port_chromium.cc b/third_party/leveldatabase/port/port_chromium.cc
index c76b4ef96154e0e2ad131e3e4af92041f1eae086..ef1e93abd17bf405385a96e78a75b07bfbfe27e4 100644
--- a/third_party/leveldatabase/port/port_chromium.cc
+++ b/third_party/leveldatabase/port/port_chromium.cc
@@ -51,24 +51,22 @@ void CondVar::SignalAll() {
}
void InitOnceImpl(OnceType* once, void (*initializer)()) {
- OnceType state = ::base::subtle::Acquire_Load(once);
+ OnceType state = base::subtle::Acquire_Load(once);
if (state == ONCE_STATE_DONE)
return;
- state = ::base::subtle::NoBarrier_CompareAndSwap(
- once,
- ONCE_STATE_UNINITIALIZED,
- ONCE_STATE_EXECUTING_CLOSURE);
+ state = base::subtle::NoBarrier_CompareAndSwap(once, ONCE_STATE_UNINITIALIZED,
+ ONCE_STATE_EXECUTING_CLOSURE);
if (state == ONCE_STATE_UNINITIALIZED) {
// We are the first thread, we have to call the closure.
(*initializer)();
- ::base::subtle::Release_Store(once, ONCE_STATE_DONE);
+ base::subtle::Release_Store(once, ONCE_STATE_DONE);
} else {
// Another thread is running the closure, wait until completion.
while (state == ONCE_STATE_EXECUTING_CLOSURE) {
- ::base::PlatformThread::YieldCurrentThread();
- state = ::base::subtle::Acquire_Load(once);
+ base::PlatformThread::YieldCurrentThread();
+ state = base::subtle::Acquire_Load(once);
}
}
}
« no previous file with comments | « third_party/leveldatabase/port/port_chromium.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698