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

Side by Side Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again 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 "android_webview/lib/main/aw_main_delegate.h" 5 #include "android_webview/lib/main/aw_main_delegate.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "android_webview/browser/aw_content_browser_client.h" 9 #include "android_webview/browser/aw_content_browser_client.h"
10 #include "android_webview/browser/aw_safe_browsing_config_helper.h" 10 #include "android_webview/browser/aw_safe_browsing_config_helper.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "media/media_features.h" 48 #include "media/media_features.h"
49 #include "ui/base/resource/resource_bundle.h" 49 #include "ui/base/resource/resource_bundle.h"
50 #include "ui/events/gesture_detection/gesture_configuration.h" 50 #include "ui/events/gesture_detection/gesture_configuration.h"
51 51
52 namespace android_webview { 52 namespace android_webview {
53 53
54 namespace { 54 namespace {
55 55
56 // TODO(boliu): Remove this global Allow once the underlying issues are 56 // TODO(boliu): Remove this global Allow once the underlying issues are
57 // resolved - http://crbug.com/240453. See AwMainDelegate::RunProcess below. 57 // resolved - http://crbug.com/240453. See AwMainDelegate::RunProcess below.
58 base::LazyInstance<std::unique_ptr<ScopedAllowWaitForLegacyWebViewApi>> 58 base::LazyInstance<std::unique_ptr<ScopedAllowWaitForLegacyWebViewApi>>::
59 g_allow_wait_in_ui_thread = LAZY_INSTANCE_INITIALIZER; 59 DestructorAtExit g_allow_wait_in_ui_thread = LAZY_INSTANCE_INITIALIZER;
60 } 60 }
61 61
62 AwMainDelegate::AwMainDelegate() { 62 AwMainDelegate::AwMainDelegate() {
63 } 63 }
64 64
65 AwMainDelegate::~AwMainDelegate() { 65 AwMainDelegate::~AwMainDelegate() {
66 } 66 }
67 67
68 bool AwMainDelegate::BasicStartupComplete(int* exit_code) { 68 bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
69 content::SetContentClient(&content_client_); 69 content::SetContentClient(&content_client_);
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { 281 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() {
282 return new AwWebPreferencesPopulaterImpl(); 282 return new AwWebPreferencesPopulaterImpl();
283 } 283 }
284 284
285 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() { 285 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() {
286 return new AwLocaleManagerImpl(); 286 return new AwLocaleManagerImpl();
287 } 287 }
288 288
289 } // namespace android_webview 289 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/scoped_app_gl_state_restore.cc ('k') | android_webview/native/aw_contents_io_thread_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698