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

Unified Diff: device/generic_sensor/one_writer_seqlock.cc

Issue 2332903002: [sensors] [mac] Implement ambient light sensor for macOS (Closed)
Patch Set: [sensors] [mac] Implement ambient light sensor for macOS Created 4 years, 3 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
Index: device/generic_sensor/one_writer_seqlock.cc
diff --git a/content/common/one_writer_seqlock.cc b/device/generic_sensor/one_writer_seqlock.cc
similarity index 89%
rename from content/common/one_writer_seqlock.cc
rename to device/generic_sensor/one_writer_seqlock.cc
index fa0c8b2d0cf424a5cfa09ca18a1b5749259de8f8..ca35684bb0144591ace5792ff94fb7a06926bbd1 100644
--- a/content/common/one_writer_seqlock.cc
+++ b/device/generic_sensor/one_writer_seqlock.cc
@@ -2,13 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/common/one_writer_seqlock.h"
+#include "device/generic_sensor/one_writer_seqlock.h"
-namespace content {
+namespace device {
-OneWriterSeqLock::OneWriterSeqLock()
- : sequence_(0) {
-}
+OneWriterSeqLock::OneWriterSeqLock() : sequence_(0) {}
base::subtle::Atomic32 OneWriterSeqLock::ReadBegin() {
base::subtle::Atomic32 version;
@@ -46,4 +44,4 @@ void OneWriterSeqLock::WriteEnd() {
base::subtle::Barrier_AtomicIncrement(&sequence_, 1);
}
-} // namespace content
+} // namespace device

Powered by Google App Engine
This is Rietveld 408576698