|
|
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}
|
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
|
Total messages: 19 (10 generated)
|