Index: chrome/browser/extensions/scoped_gaia_auth_extension.cc |
diff --git a/chrome/browser/extensions/scoped_gaia_auth_extension.cc b/chrome/browser/extensions/scoped_gaia_auth_extension.cc |
index 03e5e72f7a83c17fac4fad90592a33f473e70e2f..c294d2ec6d2696bc001ff23fa14b3873d5990689 100644 |
--- a/chrome/browser/extensions/scoped_gaia_auth_extension.cc |
+++ b/chrome/browser/extensions/scoped_gaia_auth_extension.cc |
@@ -34,7 +34,14 @@ void LoadGaiaAuthExtension(Profile* profile) { |
if (command_line->HasSwitch(switches::kAuthExtensionPath)) { |
base::FilePath auth_extension_path = |
command_line->GetSwitchValuePath(switches::kAuthExtensionPath); |
- component_loader->Add(IDR_GAIA_TEST_AUTH_MANIFEST, auth_extension_path); |
+ const std::string extension_id = |
+ component_loader->AddOrReplace(auth_extension_path); |
+ |
+ if (extension_id.empty()) { |
+ LOG(ERROR) << "Failed to load custom Gaia auth extension given by the " |
+ << switches::kAuthExtensionPath << " flag: " |
+ << auth_extension_path.value(); |
+ } |
return; |
} |