Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6295)

Unified Diff: chrome/browser/extensions/extension_browsertest.cc

Issue 342003005: Show alert failure for reloading unpacked extensions with bad manifest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed be_noisy, support interaction with multiple failures Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_browsertest.cc
diff --git a/chrome/browser/extensions/extension_browsertest.cc b/chrome/browser/extensions/extension_browsertest.cc
index 3443de8f8fc96838f638d26443f677b3f919afa5..63e963432ea1a86a61e65dd2ed4b1b1e2e143e4d 100644
--- a/chrome/browser/extensions/extension_browsertest.cc
+++ b/chrome/browser/extensions/extension_browsertest.cc
@@ -201,7 +201,7 @@ ExtensionBrowserTest::LoadExtensionWithInstallParam(
// Reload the extension so that the
// NOTIFICATION_EXTENSION_LOADED_DEPRECATED
// observers may access |install_param|.
- service->ReloadExtension(extension_id);
+ service->ReloadExtension(extension_id, true);
load_signal.Wait();
extension = service->GetExtensionById(extension_id, false);
CHECK(extension) << extension_id << " not found after reloading.";
@@ -535,7 +535,7 @@ void ExtensionBrowserTest::ReloadExtension(const std::string extension_id) {
ExtensionService* service =
extensions::ExtensionSystem::Get(profile())->extension_service();
- service->ReloadExtension(extension_id);
+ service->ReloadExtension(extension_id, true);
observer_->Wait();
observer_->WaitForExtensionViewsToLoad();

Powered by Google App Engine
This is Rietveld 408576698