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

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

Issue 282103003: Moved IS_EPHEMERAL flag to extension prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up file header Created 6 years, 7 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
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/extensions/extension_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_browsertest.h
diff --git a/chrome/browser/extensions/extension_browsertest.h b/chrome/browser/extensions/extension_browsertest.h
index 0302dce78ef25c21bbe9625630e0b82a023d3bda..cdd7614d1875ed5da89850606682dc97fb29e6ff 100644
--- a/chrome/browser/extensions/extension_browsertest.h
+++ b/chrome/browser/extensions/extension_browsertest.h
@@ -188,8 +188,31 @@ class ExtensionBrowserTest : virtual public InProcessBrowserTest {
int expected_change,
extensions::Manifest::Location install_source,
extensions::Extension::InitFromValueFlags creation_flags) {
- return InstallOrUpdateExtension(std::string(), path, INSTALL_UI_TYPE_NONE,
- expected_change, install_source, browser(), creation_flags, false);
+ return InstallOrUpdateExtension(std::string(),
+ path,
+ INSTALL_UI_TYPE_NONE,
+ expected_change,
+ install_source,
+ browser(),
+ creation_flags,
+ false,
+ false);
+ }
+
+ const extensions::Extension* InstallEphemeralAppWithSourceAndFlags(
+ const base::FilePath& path,
+ int expected_change,
+ extensions::Manifest::Location install_source,
+ extensions::Extension::InitFromValueFlags creation_flags) {
+ return InstallOrUpdateExtension(std::string(),
+ path,
+ INSTALL_UI_TYPE_NONE,
+ expected_change,
+ install_source,
+ browser(),
+ creation_flags,
+ false,
+ true);
}
// Begins install process but simulates a user cancel.
@@ -347,7 +370,8 @@ class ExtensionBrowserTest : virtual public InProcessBrowserTest {
extensions::Manifest::Location install_source,
Browser* browser,
extensions::Extension::InitFromValueFlags creation_flags,
- bool wait_for_idle);
+ bool wait_for_idle,
+ bool is_ephemeral);
// Make the current channel "dev" for the duration of the test.
extensions::ScopedCurrentChannel current_channel_;
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/extensions/extension_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698