| 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);
|
| }
|
| }
|
| }
|
|
|