Index: chrome/browser/chromeos/policy/power_policy_browsertest.cc |
diff --git a/chrome/browser/chromeos/policy/power_policy_browsertest.cc b/chrome/browser/chromeos/policy/power_policy_browsertest.cc |
index 37b8988491f9d4138de10ace2a8fc5605a85f4f6..4345ab39de10f8c44426f98ed13872155cd93039 100644 |
--- a/chrome/browser/chromeos/policy/power_policy_browsertest.cc |
+++ b/chrome/browser/chromeos/policy/power_policy_browsertest.cc |
@@ -49,7 +49,7 @@ |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/notification_source.h" |
#include "content/public/test/test_utils.h" |
-#include "extensions/browser/api/power/power_api_manager.h" |
+#include "extensions/browser/api/power/power_api.h" |
#include "extensions/common/api/power.h" |
#include "policy/proto/device_management_backend.pb.h" |
#include "testing/gmock/include/gmock/gmock.h" |
@@ -482,8 +482,8 @@ IN_PROC_BROWSER_TEST_F(PowerPolicyInSessionBrowserTest, AllowScreenWakeLocks) { |
// Pretend an extension grabs a screen wake lock. |
const char kExtensionId[] = "abcdefghijklmnopabcdefghijlkmnop"; |
- extensions::PowerApiManager::Get(browser()->profile())->AddRequest( |
- kExtensionId, extensions::core_api::power::LEVEL_DISPLAY); |
+ extensions::PowerAPI::Get(browser()->profile()) |
+ ->AddRequest(kExtensionId, extensions::core_api::power::LEVEL_DISPLAY); |
base::RunLoop().RunUntilIdle(); |
// Check that the lock is in effect (ignoring ac_idle_action, |