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

Issue 1812883003: Enable features API for content shell and webview (Closed)

Created:
4 years, 9 months ago by Changwan Ryu
Modified:
4 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, Peter Beverloo, jam, darin-cc_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org, Alexei Svitkine (slow), yabinh
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable features API for content shell and webview When I run the following: build/android/adb_content_shell_command_line --enable-features=ImeThread Then call to base::FeatureList::IsEnabled(features::kImeThread) always returns false. This happens because we are not initializing feature list for content shell. With this CL, BrowserMainLoop::PreCreateThreads() now initializes features from commandline. BUG=596021 Committed: https://crrev.com/5b9da199ca3d2cc6e4bc25861df705f6e3151c04 Cr-Commit-Position: refs/heads/master@{#384212}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix test suite case and add webview support #

Patch Set 3 : fix unit test, cast tests, content browsertests (there are genuine failures) #

Patch Set 4 : do not override dummy instance #

Total comments: 3

Patch Set 5 : move the logic to BrowserMainLoop #

Patch Set 6 : change InitializeInstance #

Total comments: 5

Patch Set 7 : add comment and fix a nit #

Total comments: 2

Patch Set 8 : updated comment in BrowserMainLoop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -12 lines) Patch
M base/feature_list.h View 1 2 3 4 5 2 chunks +10 lines, -3 lines 0 comments Download
M base/feature_list.cc View 1 2 3 4 5 6 3 chunks +27 lines, -5 lines 0 comments Download
M base/feature_list_unittest.cc View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -3 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 41 (16 generated)
Changwan Ryu
PTAL
4 years, 9 months ago (2016-03-18 10:46:24 UTC) #2
Alexei Svitkine (slow)
Thanks for working on this! https://codereview.chromium.org/1812883003/diff/1/content/shell/browser/shell_browser_main_parts.cc File content/shell/browser/shell_browser_main_parts.cc (right): https://codereview.chromium.org/1812883003/diff/1/content/shell/browser/shell_browser_main_parts.cc#newcode138 content/shell/browser/shell_browser_main_parts.cc:138: const base::CommandLine* command_line = ...
4 years, 9 months ago (2016-03-18 15:03:42 UTC) #4
Changwan Ryu
https://codereview.chromium.org/1812883003/diff/1/content/shell/browser/shell_browser_main_parts.cc File content/shell/browser/shell_browser_main_parts.cc (right): https://codereview.chromium.org/1812883003/diff/1/content/shell/browser/shell_browser_main_parts.cc#newcode138 content/shell/browser/shell_browser_main_parts.cc:138: const base::CommandLine* command_line = On 2016/03/18 15:03:42, Alexei Svitkine ...
4 years, 9 months ago (2016-03-23 09:47:36 UTC) #5
Alexei Svitkine (slow)
Thanks for your detailed investigation. See below for further discussion. https://codereview.chromium.org/1812883003/diff/60001/content/shell/browser/shell_browser_main_parts.cc File content/shell/browser/shell_browser_main_parts.cc (right): https://codereview.chromium.org/1812883003/diff/60001/content/shell/browser/shell_browser_main_parts.cc#newcode149 ...
4 years, 9 months ago (2016-03-24 17:16:37 UTC) #6
Changwan Ryu
PTAL https://codereview.chromium.org/1812883003/diff/60001/content/shell/browser/shell_browser_main_parts.cc File content/shell/browser/shell_browser_main_parts.cc (right): https://codereview.chromium.org/1812883003/diff/60001/content/shell/browser/shell_browser_main_parts.cc#newcode149 content/shell/browser/shell_browser_main_parts.cc:149: base::FeatureList::SetInstance(std::move(feature_list)); On 2016/03/24 17:16:37, Alexei Svitkine (OOO 25-27th) ...
4 years, 9 months ago (2016-03-28 07:09:27 UTC) #8
Changwan Ryu
On 2016/03/28 07:09:27, Changwan Ryu wrote: > PTAL > > https://codereview.chromium.org/1812883003/diff/60001/content/shell/browser/shell_browser_main_parts.cc > File content/shell/browser/shell_browser_main_parts.cc (right): ...
4 years, 8 months ago (2016-03-29 09:40:13 UTC) #9
Alexei Svitkine (slow)
https://codereview.chromium.org/1812883003/diff/60001/content/shell/browser/shell_browser_main_parts.cc File content/shell/browser/shell_browser_main_parts.cc (right): https://codereview.chromium.org/1812883003/diff/60001/content/shell/browser/shell_browser_main_parts.cc#newcode149 content/shell/browser/shell_browser_main_parts.cc:149: base::FeatureList::SetInstance(std::move(feature_list)); On 2016/03/28 07:09:27, Changwan Ryu wrote: > On ...
4 years, 8 months ago (2016-03-29 15:08:03 UTC) #10
Changwan Ryu
On 2016/03/29 15:08:03, Alexei Svitkine wrote: > https://codereview.chromium.org/1812883003/diff/60001/content/shell/browser/shell_browser_main_parts.cc > File content/shell/browser/shell_browser_main_parts.cc (right): > > https://codereview.chromium.org/1812883003/diff/60001/content/shell/browser/shell_browser_main_parts.cc#newcode149 ...
4 years, 8 months ago (2016-03-29 19:24:47 UTC) #12
Alexei Svitkine (slow)
https://codereview.chromium.org/1812883003/diff/100001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/1812883003/diff/100001/base/feature_list.cc#newcode149 base/feature_list.cc:149: if (g_instance->initialized_from_command_line_) { Are you sure this bit of ...
4 years, 8 months ago (2016-03-30 16:44:32 UTC) #13
Alexei Svitkine (slow)
https://codereview.chromium.org/1812883003/diff/100001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/1812883003/diff/100001/base/feature_list.cc#newcode149 base/feature_list.cc:149: if (g_instance->initialized_from_command_line_) { On 2016/03/30 16:44:32, Alexei Svitkine wrote: ...
4 years, 8 months ago (2016-03-30 17:12:25 UTC) #14
Changwan Ryu
https://codereview.chromium.org/1812883003/diff/100001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/1812883003/diff/100001/base/feature_list.cc#newcode149 base/feature_list.cc:149: if (g_instance->initialized_from_command_line_) { On 2016/03/30 17:12:25, Alexei Svitkine wrote: ...
4 years, 8 months ago (2016-03-30 17:53:31 UTC) #15
Alexei Svitkine (slow)
lgtm
4 years, 8 months ago (2016-03-30 18:05:04 UTC) #16
Changwan Ryu
On 2016/03/30 18:05:04, Alexei Svitkine wrote: > lgtm sievers@, could you take a look at ...
4 years, 8 months ago (2016-03-30 18:06:21 UTC) #17
no sievers
lgtm https://codereview.chromium.org/1812883003/diff/120001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1812883003/diff/120001/content/browser/browser_main_loop.cc#newcode698 content/browser/browser_main_loop.cc:698: // Initialize from command line flags only if ...
4 years, 8 months ago (2016-03-30 18:36:03 UTC) #18
Changwan Ryu
Thanks for all the reviews. https://codereview.chromium.org/1812883003/diff/120001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1812883003/diff/120001/content/browser/browser_main_loop.cc#newcode698 content/browser/browser_main_loop.cc:698: // Initialize from command ...
4 years, 8 months ago (2016-03-31 00:31:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1812883003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1812883003/140001
4 years, 8 months ago (2016-03-31 00:32:57 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/164371)
4 years, 8 months ago (2016-03-31 00:50:34 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1812883003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1812883003/140001
4 years, 8 months ago (2016-03-31 01:07:50 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1812883003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1812883003/140001
4 years, 8 months ago (2016-03-31 07:07:55 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/164393)
4 years, 8 months ago (2016-03-31 07:16:50 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1812883003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1812883003/140001
4 years, 8 months ago (2016-03-31 07:17:46 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/114161)
4 years, 8 months ago (2016-03-31 07:20:24 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1812883003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1812883003/140001
4 years, 8 months ago (2016-03-31 07:21:32 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-03-31 07:36:29 UTC) #39
commit-bot: I haz the power
4 years, 8 months ago (2016-03-31 07:38:09 UTC) #41
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/5b9da199ca3d2cc6e4bc25861df705f6e3151c04
Cr-Commit-Position: refs/heads/master@{#384212}

Powered by Google App Engine
This is Rietveld 408576698