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

Unified Diff: apps/load_and_launch_browsertest.cc

Issue 15947007: Move application restart and relaunch code out of ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pafooey Created 7 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 | « apps/apps.gypi ('k') | apps/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/load_and_launch_browsertest.cc
diff --git a/chrome/browser/extensions/load_and_launch_browsertest.cc b/apps/load_and_launch_browsertest.cc
similarity index 93%
rename from chrome/browser/extensions/load_and_launch_browsertest.cc
rename to apps/load_and_launch_browsertest.cc
index c48e2ba6de638bc683c96541af7af3799b0da7ba..63d22661c09eca1737df2a4f6b9436101f7d8010 100644
--- a/chrome/browser/extensions/load_and_launch_browsertest.cc
+++ b/apps/load_and_launch_browsertest.cc
@@ -6,6 +6,7 @@
// The two cases are when chrome is running and another process uses the switch
// and when chrome is started from scratch.
+#include "apps/switches.h"
#include "base/test/test_timeouts.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/extensions/extension_test_message_listener.h"
@@ -14,7 +15,9 @@
#include "chrome/common/chrome_switches.h"
#include "content/public/test/test_launcher.h"
-namespace extensions {
+using extensions::PlatformAppBrowserTest;
+
+namespace apps {
// TODO(jackhou): Enable this test once it works on OSX. It currently does not
// work for the same reason --app-id doesn't. See http://crbug.com/148465
@@ -42,7 +45,7 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
.AppendASCII("platform_apps")
.AppendASCII("minimal");
- new_cmdline.AppendSwitchNative(switches::kLoadAndLaunchApp,
+ new_cmdline.AppendSwitchNative(apps::kLoadAndLaunchApp,
app_path.value());
new_cmdline.AppendSwitch(content::kLaunchAsBrowser);
@@ -67,7 +70,7 @@ class PlatformAppLoadAndLaunchBrowserTest : public PlatformAppBrowserTest {
app_path_ = test_data_dir_
.AppendASCII("platform_apps")
.AppendASCII("minimal");
- command_line->AppendSwitchNative(switches::kLoadAndLaunchApp,
+ command_line->AppendSwitchNative(apps::kLoadAndLaunchApp,
app_path_.value());
}
@@ -104,4 +107,4 @@ IN_PROC_BROWSER_TEST_F(PlatformAppLoadAndLaunchBrowserTest,
LoadAndLaunchApp();
}
-} // namespace extensions
+} // namespace apps
« no previous file with comments | « apps/apps.gypi ('k') | apps/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698