Index: content/browser/download/download_browsertest.cc |
diff --git a/content/browser/download/download_browsertest.cc b/content/browser/download/download_browsertest.cc |
index c139027017a2d847528ea070a0aabd086ddfee2b..faa7da27a917fc1c982d6ef89fd898c6e244eebe 100644 |
--- a/content/browser/download/download_browsertest.cc |
+++ b/content/browser/download/download_browsertest.cc |
@@ -13,8 +13,8 @@ |
#include "content/browser/download/download_file_impl.h" |
#include "content/browser/download/download_item_impl.h" |
#include "content/browser/download/download_manager_impl.h" |
-#include "content/browser/power_save_blocker.h" |
#include "content/browser/web_contents/web_contents_impl.h" |
+#include "content/public/browser/power_save_blocker.h" |
#include "content/public/common/content_switches.h" |
#include "content/public/test/download_test_observer.h" |
#include "content/public/test/test_utils.h" |
@@ -207,7 +207,7 @@ DownloadFile* DownloadFileWithDelayFactory::CreateFile( |
const net::BoundNetLog& bound_net_log, |
base::WeakPtr<DownloadDestinationObserver> observer) { |
scoped_ptr<PowerSaveBlocker> psb( |
- new PowerSaveBlocker( |
+ PowerSaveBlocker::Create( |
PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension, |
"Download in progress")); |
return new DownloadFileWithDelay( |
@@ -306,7 +306,7 @@ class CountingDownloadFileFactory : public DownloadFileFactory { |
const net::BoundNetLog& bound_net_log, |
base::WeakPtr<DownloadDestinationObserver> observer) OVERRIDE { |
scoped_ptr<PowerSaveBlocker> psb( |
- new PowerSaveBlocker( |
+ PowerSaveBlocker::Create( |
PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension, |
"Download in progress")); |
return new CountingDownloadFile( |