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

Side by Side Diff: ui/gfx/android/view_configuration.cc

Issue 2921903003: Remove base::NonThreadSafe now that all users are gone!! (Closed)
Patch Set: rebase on r477274 Created 3 years, 6 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 | « storage/browser/quota/usage_tracker.h ('k') | 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/gfx/android/view_configuration.h" 5 #include "ui/gfx/android/view_configuration.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/synchronization/lock.h"
11 #include "jni/ViewConfigurationHelper_jni.h" 11 #include "jni/ViewConfigurationHelper_jni.h"
12 12
13 using base::android::AttachCurrentThread; 13 using base::android::AttachCurrentThread;
14 using base::android::JavaParamRef; 14 using base::android::JavaParamRef;
15 15
16 namespace gfx { 16 namespace gfx {
17 17
18 namespace { 18 namespace {
19 19
20 struct ViewConfigurationData { 20 struct ViewConfigurationData {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 int ViewConfiguration::GetMinScalingSpanInDips() { 174 int ViewConfiguration::GetMinScalingSpanInDips() {
175 return g_view_configuration.Get().min_scaling_span_in_dips(); 175 return g_view_configuration.Get().min_scaling_span_in_dips();
176 } 176 }
177 177
178 bool ViewConfiguration::RegisterViewConfiguration(JNIEnv* env) { 178 bool ViewConfiguration::RegisterViewConfiguration(JNIEnv* env) {
179 return RegisterNativesImpl(env); 179 return RegisterNativesImpl(env);
180 } 180 }
181 181
182 } // namespace gfx 182 } // namespace gfx
OLDNEW
« no previous file with comments | « storage/browser/quota/usage_tracker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698