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

Unified Diff: chrome/test/testing_profile.cc

Issue 7063030: PrintPreview: Print Preview is not staying associated with initiator renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 7 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: chrome/test/testing_profile.cc
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
index 2c1d98c562cb6b49435f112af24f45e56675ad1b..507bfcc916eba8cf025a8c16807a3518884c2a68 100644
--- a/chrome/test/testing_profile.cc
+++ b/chrome/test/testing_profile.cc
@@ -42,6 +42,7 @@
#include "chrome/browser/ui/find_bar/find_bar_state.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
#include "chrome/browser/ui/webui/ntp/ntp_resource_cache.h"
+#include "chrome/browser/ui/webui/print_preview_data_manager.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/bookmark_load_observer.h"
@@ -750,6 +751,12 @@ ChromeURLDataManager* TestingProfile::GetChromeURLDataManager() {
return chrome_url_data_manager_.get();
}
+PrintPreviewDataManager* TestingProfile::GetPrintPreviewDataManager() {
+ if (!print_preview_data_manager_.get())
+ print_preview_data_manager_ = new PrintPreviewDataManager();
+ return print_preview_data_manager_.get();
+}
+
prerender::PrerenderManager* TestingProfile::GetPrerenderManager() {
if (!prerender::PrerenderManager::IsPrerenderingPossible())
return NULL;
« chrome/browser/ui/webui/print_preview_data_manager.cc ('K') | « chrome/test/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698