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

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

Issue 8549012: Print Preview: Use the global PrintPreviewTabController in unit tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_browser_process.cc
===================================================================
--- chrome/test/base/testing_browser_process.cc (revision 110639)
+++ chrome/test/base/testing_browser_process.cc (working copy)
@@ -11,6 +11,7 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prerender/prerender_tracker.h"
#include "chrome/browser/printing/background_printing_manager.h"
+#include "chrome/browser/printing/print_preview_tab_controller.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "content/browser/debugger/devtools_manager.h"
#include "net/url_request/url_request_context_getter.h"
@@ -197,7 +198,9 @@
printing::PrintPreviewTabController*
TestingBrowserProcess::print_preview_tab_controller() {
- return NULL;
+ if (!print_preview_tab_controller_.get())
+ print_preview_tab_controller_ = new printing::PrintPreviewTabController();
+ return print_preview_tab_controller_.get();
}
printing::BackgroundPrintingManager*
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698