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

Unified Diff: chrome/test/base/web_ui_browsertest.cc

Issue 22577010: Printing: Add a basic printing mode without print preview and cloud print. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 4 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 | « chrome/test/base/testing_browser_process.cc ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/web_ui_browsertest.cc
diff --git a/chrome/test/base/web_ui_browsertest.cc b/chrome/test/base/web_ui_browsertest.cc
index b4f4690dd330fe26b8cd1848d2783fced55a2b77..add13a73ba8b1951d6b40e9b1ed4cff377aed909 100644
--- a/chrome/test/base/web_ui_browsertest.cc
+++ b/chrome/test/base/web_ui_browsertest.cc
@@ -14,7 +14,6 @@
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
-#include "chrome/browser/printing/print_preview_dialog_controller.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
@@ -42,6 +41,10 @@
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/resource/resource_handle.h"
+#if defined(ENABLE_FULL_PRINTING)
+#include "chrome/browser/printing/print_preview_dialog_controller.h"
+#endif
+
using content::NavigationController;
using content::RenderViewHost;
using content::WebContents;
@@ -279,6 +282,7 @@ void WebUIBrowserTest::BrowsePreload(const GURL& browse_to) {
}
void WebUIBrowserTest::BrowsePrintPreload(const GURL& browse_to) {
+#if defined(ENABLE_FULL_PRINTING)
ui_test_utils::NavigateToURL(browser(), browse_to);
TestTabStripModelObserver tabstrip_observer(
@@ -296,6 +300,9 @@ void WebUIBrowserTest::BrowsePrintPreload(const GURL& browse_to) {
browser()->tab_strip_model()->GetActiveWebContents());
ASSERT_TRUE(preview_dialog);
SetWebUIInstance(preview_dialog->GetWebUI());
+#else
+ NOTREACHED();
+#endif
}
const char WebUIBrowserTest::kDummyURL[] = "chrome://DummyURL";
« no previous file with comments | « chrome/test/base/testing_browser_process.cc ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698