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

Unified Diff: chrome/common/extensions/manifest_tests/extension_manifests_launcher_page_unittest.cc

Issue 1047943002: Cache --whitelisted-extension-id in SimpleFeature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests that fail on memory bots. Created 5 years, 8 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/common/extensions/manifest_tests/extension_manifests_launcher_page_unittest.cc
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_launcher_page_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_launcher_page_unittest.cc
index 0a7392b9a4c8448e6367657d57e40f19933aac2a..e344437a50c420a7c4c09e676cfeb317289a69f0 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_launcher_page_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_launcher_page_unittest.cc
@@ -6,6 +6,7 @@
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
+#include "extensions/common/features/simple_feature.h"
#include "extensions/common/manifest_handlers/launcher_page_info.h"
#include "extensions/common/switches.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -22,8 +23,7 @@ const char kWhitelistID[] = "lmadimbbgapmngbiclpjjngmdickadpl";
typedef ChromeManifestTest LauncherPageManifestTest;
TEST_F(LauncherPageManifestTest, ValidLauncherPage) {
- base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
- extensions::switches::kWhitelistedExtensionID, kWhitelistID);
+ extensions::SimpleFeature::ScopedWhitelistForTest whitelist(kWhitelistID);
scoped_refptr<extensions::Extension> extension(
LoadAndExpectSuccess("init_valid_launcher_page.json"));
ASSERT_TRUE(extension.get());

Powered by Google App Engine
This is Rietveld 408576698