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

Unified Diff: ui/views/controls/webview/webview.cc

Issue 1159033008: Refactor ViewsDelegate singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments Created 5 years, 6 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: ui/views/controls/webview/webview.cc
diff --git a/ui/views/controls/webview/webview.cc b/ui/views/controls/webview/webview.cc
index a131905b7d68ee3d4179524028015891c9e24ea3..059540a6ca341b0906e44792598abae2a9995bb3 100644
--- a/ui/views/controls/webview/webview.cc
+++ b/ui/views/controls/webview/webview.cc
@@ -407,9 +407,9 @@ void WebView::NotifyMaybeTextInputClientAndAccessibilityChanged() {
content::WebContents* WebView::CreateWebContents(
content::BrowserContext* browser_context) {
content::WebContents* contents = NULL;
- if (ViewsDelegate::views_delegate) {
- contents = ViewsDelegate::views_delegate->CreateWebContents(
- browser_context, NULL);
+ if (ViewsDelegate::GetInstance()) {
+ contents =
+ ViewsDelegate::GetInstance()->CreateWebContents(browser_context, NULL);
}
if (!contents) {

Powered by Google App Engine
This is Rietveld 408576698