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

Issue 2818123002: Move LayoutProvider initialization to later in the startup process. (Closed)

Created:
3 years, 8 months ago by kylix_rd
Modified:
3 years, 8 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, tfarina, Bret
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move LayoutProvider initialization to later in the startup process. CreateLayoutProvider() relies on ui::MaterialDesignController::Intialize() having already been called. That function cannot be called until the command-line arguments are available, which happens when PreCreateThreads() is called. BUG=687349 Review-Url: https://codereview.chromium.org/2818123002 Cr-Commit-Position: refs/heads/master@{#464777} Committed: https://chromium.googlesource.com/chromium/src/+/d61d7204eab9c8d63173a8fbadeaac9a2e816fae

Patch Set 1 #

Total comments: 3

Patch Set 2 : Added comment #

Total comments: 2

Patch Set 3 : Updated comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc View 1 2 2 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
kylix_rd
This should fix the problem Bret reported.
3 years, 8 months ago (2017-04-14 17:12:19 UTC) #3
Peter Kasting
https://codereview.chromium.org/2818123002/diff/1/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc File chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc (right): https://codereview.chromium.org/2818123002/diff/1/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc#newcode91 chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc:91: if (!views::LayoutProvider::Get()) Is it safe to move the ViewsDelegate ...
3 years, 8 months ago (2017-04-14 18:14:32 UTC) #4
kylix_rd
https://codereview.chromium.org/2818123002/diff/1/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc File chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc (right): https://codereview.chromium.org/2818123002/diff/1/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc#newcode91 chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc:91: if (!views::LayoutProvider::Get()) On 2017/04/14 18:14:32, Peter Kasting wrote: > ...
3 years, 8 months ago (2017-04-14 18:35:26 UTC) #5
Peter Kasting
LGTM https://codereview.chromium.org/2818123002/diff/1/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc File chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc (right): https://codereview.chromium.org/2818123002/diff/1/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc#newcode91 chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc:91: if (!views::LayoutProvider::Get()) On 2017/04/14 18:35:26, kylix_rd wrote: > ...
3 years, 8 months ago (2017-04-14 18:44:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2818123002/40001
3 years, 8 months ago (2017-04-14 18:50:44 UTC) #9
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 19:37:26 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d61d7204eab9c8d63173a8fbadea...

Powered by Google App Engine
This is Rietveld 408576698