Chromium Code Reviews| Index: chrome/test/base/testing_browser_process.cc |
| =================================================================== |
| --- chrome/test/base/testing_browser_process.cc (revision 99027) |
| +++ 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" |
| @@ -198,7 +199,10 @@ |
| printing::PrintPreviewTabController* |
| TestingBrowserProcess::print_preview_tab_controller() { |
| - return NULL; |
| + if (!print_preview_tab_controller_.get()) { |
|
kmadhusu
2011/08/31 21:59:17
{} is not required.
Lei Zhang
2011/08/31 23:24:04
Done.
|
| + print_preview_tab_controller_ = new printing::PrintPreviewTabController(); |
| + } |
| + return print_preview_tab_controller_.get(); |
| } |
| printing::BackgroundPrintingManager* |