Commit fece7e77 authored by nkostylev's avatar nkostylev Committed by Commit bot

[Athena] Hotfix for IME component extension loading crash on sign in

ExtensionService is not initialized.

BUG=426787

Review URL: https://codereview.chromium.org/658183003

Cr-Commit-Position: refs/heads/master@{#301343}
parent 23b7f239
......@@ -254,6 +254,13 @@ void DoLoadExtension(Profile* profile,
extensions::ExtensionSystem* extension_system =
extensions::ExtensionSystem::Get(profile);
ExtensionService* extension_service = extension_system->extension_service();
#if defined(USE_ATHENA)
// ExtensionService is not properly initialized for Athena yet.
// http://crbug.com/426787
if (!extension_service)
return;
#endif
DCHECK(extension_service);
if (extension_service->GetExtensionById(extension_id, false))
return;
const std::string loaded_extension_id =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment