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

Side by Side Diff: android_webview/browser/aw_browser_main_parts.cc

Issue 1474483004: WebView Metrics client implementation (Chromium part) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move client back to browser layer, make it a Leaky global, and some cleanup Created 5 years 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/browser/aw_browser_main_parts.h" 5 #include "android_webview/browser/aw_browser_main_parts.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_dev_tools_discovery_provider.h" 8 #include "android_webview/browser/aw_dev_tools_discovery_provider.h"
9 #include "android_webview/browser/aw_media_client_android.h" 9 #include "android_webview/browser/aw_media_client_android.h"
10 #include "android_webview/browser/aw_result_codes.h" 10 #include "android_webview/browser/aw_result_codes.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // This is needed for WebView Classic backwards compatibility 93 // This is needed for WebView Classic backwards compatibility
94 // See crbug.com/298495. Also see crbug.com/525697 on why it is currently 94 // See crbug.com/298495. Also see crbug.com/525697 on why it is currently
95 // for single process mode only. 95 // for single process mode only.
96 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 96 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
97 switches::kSingleProcess)) { 97 switches::kSingleProcess)) {
98 content::SetMaxURLChars(20 * 1024 * 1024); 98 content::SetMaxURLChars(20 * 1024 * 1024);
99 } 99 }
100 } 100 }
101 101
102 void AwBrowserMainParts::PostMainMessageLoopRun() {
103 browser_context_->PostMainMessageLoopRun();
104 }
105
102 bool AwBrowserMainParts::MainMessageLoopRun(int* result_code) { 106 bool AwBrowserMainParts::MainMessageLoopRun(int* result_code) {
103 // Android WebView does not use default MessageLoop. It has its own 107 // Android WebView does not use default MessageLoop. It has its own
104 // Android specific MessageLoop. 108 // Android specific MessageLoop.
105 return true; 109 return true;
106 } 110 }
107 111
108 } // namespace android_webview 112 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698