Chromium Code Reviews| 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..d4d6ccd9c503da59a270bcff5640392bb7368c9b 100644 |
| --- a/chrome/browser/extensions/scoped_gaia_auth_extension.cc |
| +++ b/chrome/browser/extensions/scoped_gaia_auth_extension.cc |
| @@ -34,7 +34,13 @@ 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()) |
|
achuithb
2013/05/23 23:08:59
Sorry, didn't notice this before, but you need cur
Tim Song
2013/05/23 23:15:20
This is a single statement, so it should be work f
achuithb
2013/05/23 23:17:47
Yup, I believe we have an explicit rule in the sty
|
| + LOG(ERROR) << "Failed to load custom Gaia auth extension given by the " |
| + << switches::kAuthExtensionPath << " flag: " |
| + << auth_extension_path.value(); |
| return; |
| } |