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

Unified Diff: ash/content/display/screen_orientation_controller_chromeos_unittest.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: ash/content/display/screen_orientation_controller_chromeos_unittest.cc
diff --git a/ash/content/display/screen_orientation_controller_chromeos_unittest.cc b/ash/content/display/screen_orientation_controller_chromeos_unittest.cc
index 487d44c2dfd3bee4a531a32975f9420c99643d56..47db85d232210c8c577eddca893c4e74f545613d 100644
--- a/ash/content/display/screen_orientation_controller_chromeos_unittest.cc
+++ b/ash/content/display/screen_orientation_controller_chromeos_unittest.cc
@@ -135,7 +135,7 @@ ScreenOrientationControllerTest::~ScreenOrientationControllerTest() {
}
content::WebContents* ScreenOrientationControllerTest::CreateWebContents() {
- return views::ViewsDelegate::views_delegate->CreateWebContents(
+ return views::ViewsDelegate::GetInstance()->CreateWebContents(
ash_test_helper()->test_shell_delegate()->GetActiveBrowserContext(),
nullptr);
}
@@ -143,7 +143,7 @@ content::WebContents* ScreenOrientationControllerTest::CreateWebContents() {
content::WebContents*
ScreenOrientationControllerTest::CreateSecondaryWebContents() {
secondary_browser_context_.reset(new content::TestBrowserContext());
- return views::ViewsDelegate::views_delegate->CreateWebContents(
+ return views::ViewsDelegate::GetInstance()->CreateWebContents(
secondary_browser_context_.get(), nullptr);
}

Powered by Google App Engine
This is Rietveld 408576698