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

Unified Diff: chrome/browser/ui/views/chrome_views_delegate.cc

Issue 1686153003: Adds calls to NativeWidgetFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/chrome_views_delegate.cc
diff --git a/chrome/browser/ui/views/chrome_views_delegate.cc b/chrome/browser/ui/views/chrome_views_delegate.cc
index c95d3c04979698dd81d846d1162152f19313930a..28d4aa294d985bc9e7f37ab085fc4790446d3c2c 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -323,6 +323,12 @@ void ChromeViewsDelegate::OnBeforeWidgetInit(
if (params->native_widget)
return;
+ if (!native_widget_factory().is_null()) {
+ params->native_widget = native_widget_factory().Run(*params, delegate);
+ if (params->native_widget)
+ return;
+ }
+
#if defined(USE_AURA) && !defined(OS_CHROMEOS)
bool use_non_toplevel_window =
params->parent &&
« no previous file with comments | « no previous file | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698