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

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

Issue 2004043002: Supervised Users Initiated Installs v2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kid_initiated_install
Patch Set: Response to code review from Marc Created 4 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_service_test_with_install.cc
diff --git a/chrome/browser/extensions/extension_service_test_with_install.cc b/chrome/browser/extensions/extension_service_test_with_install.cc
index fda8c4ba9514794d3d743691ea354c13de45d68a..d5510fbc474cacc8a479eb5310f6078416ade74f 100644
--- a/chrome/browser/extensions/extension_service_test_with_install.cc
+++ b/chrome/browser/extensions/extension_service_test_with_install.cc
@@ -197,7 +197,7 @@ const Extension* ExtensionServiceTestWithInstall::VerifyCrxInstall(
std::vector<base::string16> errors = GetErrors();
const Extension* extension = nullptr;
if (install_state != INSTALL_FAILED) {
- if (install_state == INSTALL_NEW)
+ if (install_state == INSTALL_NEW || install_state == INSTALL_WITHOUT_LOAD)
++expected_extensions_count_;
EXPECT_TRUE(installed_) << path.value();
@@ -211,6 +211,7 @@ const Extension* ExtensionServiceTestWithInstall::VerifyCrxInstall(
if (install_state == INSTALL_WITHOUT_LOAD) {
EXPECT_EQ(0u, loaded_.size()) << path.value();
+ extension = installed_;
} else {
EXPECT_EQ(1u, loaded_.size()) << path.value();
size_t actual_extension_count =

Powered by Google App Engine
This is Rietveld 408576698