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

Unified Diff: chrome/browser/profiles/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/browser/profiles/profile.cc
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
index 85bbef221114ca4bffbd2ebc594c1060244f0d5b..56ed8a462c3c2179107733ffa7e8a6dd1b7828e8 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -35,6 +35,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/extension_icon_source.h"
+#include "chrome/browser/ui/webui/print_preview_data_manager.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
@@ -660,6 +661,12 @@ class OffTheRecordProfileImpl : public Profile,
return chrome_url_data_manager_.get();
}
+ virtual PrintPreviewDataManager* GetPrintPreviewDataManager() {
+ if (!print_preview_data_manager_.get())
+ print_preview_data_manager_ = new PrintPreviewDataManager();
+ return print_preview_data_manager_.get();
+ }
+
virtual PromoCounter* GetInstantPromoCounter() {
return NULL;
}
@@ -783,6 +790,8 @@ class OffTheRecordProfileImpl : public Profile,
scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
+ scoped_refptr<PrintPreviewDataManager> print_preview_data_manager_;
+
scoped_refptr<quota::QuotaManager> quota_manager_;
// Used read-only.

Powered by Google App Engine
This is Rietveld 408576698