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

Issue 1871253002: aura: Require explicit ownership of the Env instance. (Closed)

Created:
4 years, 8 months ago by sadrul
Modified:
4 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, sadrul, Peter Beverloo, tfarina, lcwu+watch_chromium.org, jam, darin-cc_chromium.org, halliwell+watch_chromium.org, kalyank, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

aura: Require explicit ownership of the Env instance. Notable changes: . Change aura::Env::CreateInstance() to return a std::unique_ptr<> to the aura::Env instance, so that there's a clear owner of the instance, and random code can no longer destroy it. . Make aura::Env::CreateInstance() fail if more than one instance is attempted to be created. . Remove the boolean parameter to aura::Env::CreateInstance(), since that is no longer necessary, and always create a PlatformEventSource instance (if one hasn't already been created). . BrowserMainLoop takes care of creating/destroying the aura::Env instance. So the various BrowserMainParts implementations no longer need to do that. BUG=601983 Committed: https://crrev.com/578205fa70099bc2c93f785e6860ea878e6b7364 Cr-Commit-Position: refs/heads/master@{#386502}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : bug #

Patch Set 4 : tot.merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -79 lines) Patch
M ash/shell/content/client/shell_browser_main_parts.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/test/ash_interactive_ui_test_base.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ash/test/ash_interactive_ui_test_base.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/test/test_suite.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ash/test/test_suite.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/base/view_event_test_platform_part_chromeos.cc View 4 chunks +5 lines, -2 lines 0 comments Download
M chrome/test/base/view_event_test_platform_part_default.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M chromecast/browser/cast_browser_main_parts.cc View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M content/browser/browser_main_loop.h View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/test/unittest_test_suite.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M content/public/test/unittest_test_suite.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M content/shell/browser/shell_aura.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/browser/shell_views.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M headless/lib/browser/headless_browser_main_parts.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/demo/demo_main.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M ui/aura/env.h View 3 chunks +6 lines, -9 lines 0 comments Download
M ui/aura/env.cc View 1 3 chunks +14 lines, -20 lines 0 comments Download
M ui/aura/test/aura_test_helper.h View 2 chunks +7 lines, -1 line 0 comments Download
M ui/aura/test/aura_test_helper.cc View 3 chunks +4 lines, -8 lines 0 comments Download
M ui/aura/test/run_all_unittests.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/examples/examples_main.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M ui/views/mus/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/mus/aura_init.h View 3 chunks +6 lines, -0 lines 0 comments Download
M ui/views/mus/aura_init.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/views/mus/window_manager_connection.cc View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M ui/views/run_all_unittests.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M ui/views_content_client/views_content_client_main_parts_aura.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M ui/views_content_client/views_content_client_main_parts_desktop_aura.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M ui/wm/test/run_all_unittests.cc View 3 chunks +7 lines, -0 lines 0 comments Download
M ui/wm/test/wm_test_helper.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 19 (10 generated)
sadrul
I attempted this earlier (https://codereview.chromium.org/1293013002/), but it broke mandoline, and was reverted. Now that mandoline ...
4 years, 8 months ago (2016-04-09 03:09:33 UTC) #2
sky
LGTM
4 years, 8 months ago (2016-04-11 15:18:05 UTC) #5
sadrul
+ben@ as toplevel owner for chromecast/, content/, and headless/ changes.
4 years, 8 months ago (2016-04-11 16:32:28 UTC) #7
Ben Goodger (Google)
lgtm
4 years, 8 months ago (2016-04-11 19:59:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1871253002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1871253002/40001
4 years, 8 months ago (2016-04-11 20:23:47 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/185454) ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-11 20:27:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1871253002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1871253002/60001
4 years, 8 months ago (2016-04-11 22:36:13 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-11 22:44:09 UTC) #17
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 22:45:11 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/578205fa70099bc2c93f785e6860ea878e6b7364
Cr-Commit-Position: refs/heads/master@{#386502}

Powered by Google App Engine
This is Rietveld 408576698