registry_observer_.Add(ExtensionRegistry::Get(profile));
}
- virtual ~InstallObserver() {}
+ ~InstallObserver() override {}
const InstallParameters& Last() {
CHECK(!install_params_.empty());
}
private:
- virtual void OnExtensionWillBeInstalled(
- content::BrowserContext* browser_context,
- const Extension* extension,
- bool is_update,
- bool from_ephemeral,
- const std::string& old_name) OVERRIDE {
+ void OnExtensionWillBeInstalled(content::BrowserContext* browser_context,
+ const Extension* extension,
+ bool is_update,
+ bool from_ephemeral,
+ const std::string& old_name) override {
install_params_.push_back(
InstallParameters(extension->id(), is_update, from_ephemeral));
}
power_settings_->request_keep_awake();
}
- virtual ~PowerSaveBlockerStub() { power_settings_->release_keep_awake(); }
+ ~PowerSaveBlockerStub() override { power_settings_->release_keep_awake(); }
static scoped_ptr<PowerSaveBlocker> Create(PowerSettingsMock* power_settings,
PowerSaveBlockerType type,
// Verify that the event page of the app has not been loaded.
void VerifyAppNotLoaded(const std::string& app_id) {
- EXPECT_FALSE(ExtensionSystem::Get(profile())->
- process_manager()->GetBackgroundHostForExtension(app_id));
+ EXPECT_FALSE(extensions::ProcessManager::Get(profile())
+ ->GetBackgroundHostForExtension(app_id));
}
// Verify properties of ephemeral apps.