#include "chrome/browser/ui/views/athena/chrome_browser_main_extra_parts_athena.h"
#include "athena/env/public/athena_env.h"
-#include "athena/extensions/public/extensions_delegate.h"
#include "athena/main/public/athena_launcher.h"
#include "base/command_line.h"
#include "base/macros.h"
private:
// Overridden from ChromeBrowserMainExtraParts:
- virtual void PreProfileInit() OVERRIDE {
+ virtual void PreProfileInit() override {
athena::StartAthenaEnv(content::BrowserThread::GetBlockingPool()->
GetTaskRunnerWithShutdownBehavior(
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN));
ui::SelectFileDialog::SetFactory(new SelectFileDialogExtensionFactory);
}
- virtual void PostProfileInit() OVERRIDE {
+ virtual void PostProfileInit() override {
if (!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableZeroBrowsersOpenForTests)) {
chrome::IncrementKeepAliveCount();
g_browser_process->profile_manager()->GetActiveUserProfile();
if (!CommandLine::ForCurrentProcess()->HasSwitch(
chromeos::switches::kLoginManager)) {
- athena::ExtensionsDelegate::CreateExtensionsDelegateForChrome(profile);
athena::CreateVirtualKeyboardWithContext(profile);
athena::StartAthenaSessionWithContext(profile);
} else {
athena::CreateVirtualKeyboardWithContext(profile);
}
}
- virtual void PostMainMessageLoopRun() OVERRIDE { athena::ShutdownAthena(); }
+ virtual void PostMainMessageLoopRun() override { athena::ShutdownAthena(); }
// content::NotificationObserver:
virtual void Observe(int type,
const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE {
+ const content::NotificationDetails& details) override {
switch (type) {
case chrome::NOTIFICATION_APP_TERMINATING:
athena::AthenaEnv::Get()->OnTerminating();