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

Issue 289303004: Allow native command line arguments to be initialized early. (Closed)

Created:
6 years, 7 months ago by hjd
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src
Visibility:
Public.

Description

The WebView has a path (early use of the CookieManager) which needs access to the native command line arguments before we have initialized Chromium. This cl moves the setting up of the native command line to just after the LibraryLoaded.load step rather than just before the LibraryLoaded.initialise step. We remove the ability to pass the command line to initialize (which doesn't seem to be used) and remove the command line argument from the LibraryLoaded hook. You can access the native command line arguments instead which will have been set up. BUG=331424 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288697

Patch Set 1 #

Patch Set 2 : Add CommandLine to CookieManagerStartUpTest #

Total comments: 4

Patch Set 3 : split into two paths #

Patch Set 4 : Restore check in initialize. #

Patch Set 5 : Rebase. #

Patch Set 6 : Rebase. #

Total comments: 3

Patch Set 7 : Remove command line from init #

Patch Set 8 : Move init command line to load #

Patch Set 9 : Add test #

Patch Set 10 : Rebase. #

Patch Set 11 : Rebase More. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -27 lines) Patch
A android_webview/javatests/src/org/chromium/android_webview/test/CommandLineTest.java View 1 2 3 4 5 6 7 8 1 chunk +52 lines, -0 lines 0 comments Download
M base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java View 1 2 3 4 5 6 7 8 9 6 chunks +13 lines, -10 lines 0 comments Download
M base/android/library_loader/library_loader_hooks.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M base/android/library_loader/library_loader_hooks.cc View 1 2 3 4 5 6 2 chunks +8 lines, -3 lines 0 comments Download
M content/app/android/library_loader_hooks.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -4 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessService.java View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -6 lines 0 comments Download
M content/public/app/android_library_loader_hooks.h View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
hjd
Could you take a look, I'm trying to disentangle command line argument passing from initialization ...
6 years, 7 months ago (2014-05-20 15:55:19 UTC) #1
bulach
some comments below. I'm also adding aberent@, he knows this area quite a lot and ...
6 years, 7 months ago (2014-05-21 11:33:49 UTC) #2
hjd
Thanks :) Hi aberent@! I changed the design so you either call initialize(String[] initCommandLine) xor ...
6 years, 7 months ago (2014-05-22 11:09:10 UTC) #3
aberent
lgtm
6 years, 6 months ago (2014-05-29 17:38:14 UTC) #4
hjd
The CQ bit was checked by hjd@chromium.org
6 years, 6 months ago (2014-06-13 11:17:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hjd@chromium.org/289303004/100001
6 years, 6 months ago (2014-06-13 11:18:58 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-13 14:36:38 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-13 14:39:33 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/73564)
6 years, 6 months ago (2014-06-13 14:39:34 UTC) #9
hjd
Could I get a few OWNERS reviews please :) Marcus for .*library_loader.* and Torne for ...
6 years, 6 months ago (2014-06-18 11:18:58 UTC) #10
mkosiba (inactive)
https://codereview.chromium.org/289303004/diff/100001/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java File android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java (right): https://codereview.chromium.org/289303004/diff/100001/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java#newcode34 android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java:34: LibraryLoader.initializeCommandLine(new String[]{}); is this to prevent a crash or ...
6 years, 6 months ago (2014-06-18 16:54:45 UTC) #11
bulach
+ross, some suggestions below.. https://codereview.chromium.org/289303004/diff/100001/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java File base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java (right): https://codereview.chromium.org/289303004/diff/100001/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java#newcode228 base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java:228: if (!sLoaded) { sorry, I'm ...
6 years, 6 months ago (2014-06-18 17:06:33 UTC) #12
hjd
On 2014/06/18 17:06:33, bulach wrote: > +ross, some suggestions below.. > > https://codereview.chromium.org/289303004/diff/100001/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java > File ...
6 years, 6 months ago (2014-06-18 19:24:41 UTC) #13
bulach
great!! :) I hope it'll be possible to do this simplification, thanks for investigating it! ...
6 years, 6 months ago (2014-06-18 22:15:30 UTC) #14
hjd
ptal Marcus: base/android/library_loader/ Martin: CommandLineTest.java OWNERS: yfriedman@: ChildProcessService.java and library_loader_hooks.cc jochen@: content/public/app/android_library_loader_hooks.h https://codereview.chromium.org/289303004/diff/100001/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java File android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java ...
6 years, 5 months ago (2014-07-02 13:11:53 UTC) #15
mkosiba (inactive)
test LGTM
6 years, 5 months ago (2014-07-02 13:25:01 UTC) #16
jochen (gone - plz use gerrit)
lgtm
6 years, 5 months ago (2014-07-02 13:28:49 UTC) #17
bulach
lgtm, nice thanks!
6 years, 5 months ago (2014-07-02 13:41:57 UTC) #18
rmcilroy
lgtm
6 years, 5 months ago (2014-07-02 15:18:09 UTC) #19
hjd
The CQ bit was checked by hjd@chromium.org
6 years, 4 months ago (2014-08-11 10:52:33 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hjd@chromium.org/289303004/200001
6 years, 4 months ago (2014-08-11 10:53:07 UTC) #21
commit-bot: I haz the power
6 years, 4 months ago (2014-08-11 13:36:04 UTC) #22
Message was sent while issue was closed.
Change committed as 288697

Powered by Google App Engine
This is Rietveld 408576698