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

Side by Side Diff: content/app/android/library_loader_hooks.cc

Issue 2316183002: Remove @MainDex from classes within content/browser (Closed)
Patch Set: Back to PS3 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 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 "content/app/android/library_loader_hooks.h" 5 #include "content/app/android/library_loader_hooks.h"
6 6
7 #include "base/android/base_jni_registrar.h" 7 #include "base/android/base_jni_registrar.h"
8 #include "base/android/command_line_android.h" 8 #include "base/android/command_line_android.h"
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_registrar.h" 10 #include "base/android/jni_registrar.h"
11 #include "base/android/jni_string.h" 11 #include "base/android/jni_string.h"
12 #include "base/android/library_loader/library_loader_hooks.h"
12 #include "base/base_switches.h" 13 #include "base/base_switches.h"
13 #include "base/command_line.h" 14 #include "base/command_line.h"
14 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
15 #include "base/logging.h" 16 #include "base/logging.h"
16 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
17 #include "base/trace_event/trace_event.h" 18 #include "base/trace_event/trace_event.h"
18 #include "base/tracked_objects.h" 19 #include "base/tracked_objects.h"
19 #include "components/tracing/browser/trace_config_file.h" 20 #include "components/tracing/browser/trace_config_file.h"
20 #include "components/tracing/common/trace_to_console.h" 21 #include "components/tracing/common/trace_to_console.h"
21 #include "components/tracing/common/tracing_switches.h" 22 #include "components/tracing/common/tracing_switches.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 61
61 if (!ui::gl::android::RegisterJni(env)) 62 if (!ui::gl::android::RegisterJni(env))
62 return false; 63 return false;
63 64
64 if (!ui::shell_dialogs::RegisterJni(env)) 65 if (!ui::shell_dialogs::RegisterJni(env))
65 return false; 66 return false;
66 67
67 if (!content::android::RegisterCommonJni(env)) 68 if (!content::android::RegisterCommonJni(env))
68 return false; 69 return false;
69 70
70 if (!content::android::RegisterBrowserJni(env)) 71 if (base::android::GetLibraryProcessType(env) ==
71 return false; 72 base::android::PROCESS_BROWSER) {
Torne 2016/09/12 13:10:13 There's four values for process type, not just two
michaelbai 2016/09/12 18:54:36 The four process types defined in https://cs.chrom
agrieve 2016/09/12 19:22:22 Is it accurate that JNI registration isn't require
michaelbai 2016/09/12 19:25:27 No, as Chrome.apk and ChromeModern.apk still use c
73 if (!content::android::RegisterBrowserJni(env))
74 return false;
75 }
72 76
73 if (!content::android::RegisterAppJni(env)) 77 if (!content::android::RegisterAppJni(env))
74 return false; 78 return false;
75 79
76 if (!device::android::RegisterBluetoothJni(env)) 80 if (!device::android::RegisterBluetoothJni(env))
77 return false; 81 return false;
78 82
79 if (!device::android::RegisterGamepadJni(env)) 83 if (!device::android::RegisterGamepadJni(env))
80 return false; 84 return false;
81 85
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 false, // Thread ID 152 false, // Thread ID
149 false, // Timestamp 153 false, // Timestamp
150 false); // Tick count 154 false); // Tick count
151 VLOG(0) << "Chromium logging enabled: level = " << logging::GetMinLogLevel() 155 VLOG(0) << "Chromium logging enabled: level = " << logging::GetMinLogLevel()
152 << ", default verbosity = " << logging::GetVlogVerbosity(); 156 << ", default verbosity = " << logging::GetVlogVerbosity();
153 157
154 return true; 158 return true;
155 } 159 }
156 160
157 } // namespace content 161 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698