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

Unified Diff: content/browser/download/mhtml_generation_browsertest.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: content/browser/download/mhtml_generation_browsertest.cc
===================================================================
--- content/browser/download/mhtml_generation_browsertest.cc (revision 124331)
+++ content/browser/download/mhtml_generation_browsertest.cc (working copy)
@@ -9,7 +9,6 @@
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/ui_test_utils.h"
-#include "content/browser/download/mhtml_generation_manager.h"
#include "content/public/browser/web_contents.h"
#include "net/test/test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -58,12 +57,9 @@
test_server()->GetURL("files/google/google.html"));
WebContents* tab = browser()->GetSelectedWebContents();
- MHTMLGenerationManager* mhtml_generation_manager =
- g_browser_process->mhtml_generation_manager();
+ tab->GenerateMHTML(path,
+ base::Bind(&MHTMLGenerationTest::MHTMLGenerated, this));
- mhtml_generation_manager->GenerateMHTML(tab, path,
- base::Bind(&MHTMLGenerationTest::MHTMLGenerated, this));
-
// Block until the MHTML is generated.
ui_test_utils::RunMessageLoop();

Powered by Google App Engine
This is Rietveld 408576698