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

Unified Diff: chrome/browser/ui/views/extensions/native_app_window_views.cc

Issue 11801027: More work to make ash_unittests pass when we require context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Possible asan fix. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/extensions/native_app_window_views.cc
diff --git a/chrome/browser/ui/views/extensions/native_app_window_views.cc b/chrome/browser/ui/views/extensions/native_app_window_views.cc
index e84b7ac0321ffe19ba6e04e0eb563507d3576d9b..251cd996bb5dbceff3abd698e1800c00c532676d 100644
--- a/chrome/browser/ui/views/extensions/native_app_window_views.cc
+++ b/chrome/browser/ui/views/extensions/native_app_window_views.cc
@@ -77,6 +77,9 @@ void NativeAppWindowViews::InitializeDefaultWindow(
init_params.delegate = this;
init_params.remove_standard_frame = true;
init_params.use_system_default_icon = true;
+ // TODO(erg): Conceptually, these are toplevel windows, but we theoretically
+ // could plumb context through to here in some cases.
+ init_params.top_level = true;
window_->Init(init_params);
gfx::Rect window_bounds = create_params.bounds;
window_bounds.Inset(-GetFrameInsets());

Powered by Google App Engine
This is Rietveld 408576698