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

Side by Side Diff: content/browser/android/content_view_statics.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <jni.h> 5 #include <jni.h>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 suspended_processes_.end(), 85 suspended_processes_.end(),
86 host->GetID()); 86 host->GetID());
87 DCHECK(pos != suspended_processes_.end()); 87 DCHECK(pos != suspended_processes_.end());
88 host->RemoveObserver(this); 88 host->RemoveObserver(this);
89 suspended_processes_.erase(pos); 89 suspended_processes_.erase(pos);
90 } 90 }
91 91
92 std::vector<int /* RenderProcessHost id */> suspended_processes_; 92 std::vector<int /* RenderProcessHost id */> suspended_processes_;
93 }; 93 };
94 94
95 base::LazyInstance<SuspendedProcessWatcher> g_suspended_processes_watcher = 95 base::LazyInstance<SuspendedProcessWatcher>::DestructorAtExit
96 LAZY_INSTANCE_INITIALIZER; 96 g_suspended_processes_watcher = LAZY_INSTANCE_INITIALIZER;
97 97
98 } // namespace 98 } // namespace
99 99
100 // Returns the first substring consisting of the address of a physical location. 100 // Returns the first substring consisting of the address of a physical location.
101 static ScopedJavaLocalRef<jstring> FindAddress( 101 static ScopedJavaLocalRef<jstring> FindAddress(
102 JNIEnv* env, 102 JNIEnv* env,
103 const JavaParamRef<jclass>& clazz, 103 const JavaParamRef<jclass>& clazz,
104 const JavaParamRef<jstring>& addr) { 104 const JavaParamRef<jstring>& addr) {
105 base::string16 content_16 = ConvertJavaStringToUTF16(env, addr); 105 base::string16 content_16 = ConvertJavaStringToUTF16(env, addr);
106 base::string16 result_16; 106 base::string16 result_16;
(...skipping 12 matching lines...) Expand all
119 } 119 }
120 } 120 }
121 121
122 namespace content { 122 namespace content {
123 123
124 bool RegisterWebViewStatics(JNIEnv* env) { 124 bool RegisterWebViewStatics(JNIEnv* env) {
125 return RegisterNativesImpl(env); 125 return RegisterNativesImpl(env);
126 } 126 }
127 127
128 } // namespace content 128 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698