Index: chrome/browser/extensions/extension_service.cc |
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc |
index 2499bd4082c69a2e12e81de210a77d276acc9b2b..712e8630449d104d4a4f71f3abdb2d30ed811d05 100644 |
--- a/chrome/browser/extensions/extension_service.cc |
+++ b/chrome/browser/extensions/extension_service.cc |
@@ -627,16 +627,11 @@ void ExtensionService::ReloadExtension(const std::string& extension_id) { |
} |
bool ExtensionService::UninstallExtension( |
- const std::string& extension_id_unsafe, |
+ std::string extension_id, |
bool external_uninstall, |
std::string* error) { |
CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
- // Copy the extension identifier since the reference might have been |
- // obtained via Extension::id() and the extension may be deleted in |
- // this function. |
- std::string extension_id(extension_id_unsafe); |
- |
scoped_refptr<const Extension> extension(GetInstalledExtension(extension_id)); |
// Callers should not send us nonexistent extensions. |