Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1490)

Unified Diff: chrome/browser/extensions/extension_page_capture_api.cc

Issue 9566001: Hide MHTMLGenerationManager from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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/extensions/extension_page_capture_api.cc
===================================================================
--- chrome/browser/extensions/extension_page_capture_api.cc (revision 124331)
+++ chrome/browser/extensions/extension_page_capture_api.cc (working copy)
@@ -11,7 +11,6 @@
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/common/extensions/extension_messages.h"
#include "content/browser/renderer_host/render_view_host.h"
-#include "content/browser/download/mhtml_generation_manager.h"
#include "content/public/browser/child_process_security_policy.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
@@ -127,11 +126,9 @@
return;
}
- MHTMLGenerationManager::GenerateMHTMLCallback callback =
- base::Bind(&PageCaptureSaveAsMHTMLFunction::MHTMLGenerated, this);
-
- g_browser_process->mhtml_generation_manager()->GenerateMHTML(
- web_contents, mhtml_path_, callback);
+ web_contents->GenerateMHTML(
+ mhtml_path_,
+ base::Bind(&PageCaptureSaveAsMHTMLFunction::MHTMLGenerated, this));
}
void PageCaptureSaveAsMHTMLFunction::MHTMLGenerated(const FilePath& file_path,

Powered by Google App Engine
This is Rietveld 408576698