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

Unified Diff: ash/screensaver/test_webview.cc

Issue 10191010: Re-implement the screensaver to use WebView instead of ExtensionDialogHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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/screensaver/test_webview.cc
diff --git a/ash/screensaver/test_webview.cc b/ash/screensaver/test_webview.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5c4cc4a88a9eea89cb8f029d37a51c8169403d28
--- /dev/null
+++ b/ash/screensaver/test_webview.cc
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/screensaver/test_webview.h"
+
+#include "content/test/web_contents_tester.h"
+
+namespace ash {
+namespace test {
+
+////////////////////////////////////////////////////////////////////////////////
+// TestWebView, public:
+
+TestWebView::TestWebView(content::BrowserContext* browser_context)
+ : views::WebView(browser_context) {
+}
+
+TestWebView::~TestWebView() {
+}
+
+content::WebContents* TestWebView::CreateWebContents(
+ content::BrowserContext* browser_context,
+ content::SiteInstance* site_instance) {
+
+ return content::WebContentsTester::CreateTestWebContents(browser_context,
+ site_instance);
+}
+
+} // namespace test
+} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698