| Index: chrome/browser/extensions/extension_service.cc
|
| diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
|
| index 5ad45e9ea1c283bffd237ff844d23cde5249bb72..f71cae03479cb5d638a77f63463ff31285c0c85d 100644
|
| --- a/chrome/browser/extensions/extension_service.cc
|
| +++ b/chrome/browser/extensions/extension_service.cc
|
| @@ -311,7 +311,8 @@ void ExtensionService::OnExternalExtensionUpdateUrlFound(
|
| const std::string& id,
|
| const GURL& update_url,
|
| Extension::Location location) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + CHECK(Extension::IdIsValid(id));
|
|
|
| if (GetExtensionById(id, true)) {
|
| // Already installed. Do not change the update URL that the extension set.
|
| @@ -1823,7 +1824,8 @@ void ExtensionService::OnExternalExtensionFileFound(
|
| const Version* version,
|
| const FilePath& path,
|
| Extension::Location location) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + CHECK(Extension::IdIsValid(id));
|
| if (extension_prefs_->IsExtensionKilled(id))
|
| return;
|
|
|
|
|