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

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

Issue 190663012: Run ContentMain in a browser_test's browser process. This removes duplication of code in the browse… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: try to fix android by restoring old path just for it Created 6 years, 9 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/app_background_page_apitest.cc
===================================================================
--- chrome/browser/extensions/app_background_page_apitest.cc (revision 257432)
+++ chrome/browser/extensions/app_background_page_apitest.cc (working copy)
@@ -121,11 +121,7 @@
class AppBackgroundPageNaClTest : public AppBackgroundPageApiTest {
public:
AppBackgroundPageNaClTest()
- : extension_(NULL) {
- PathService::Get(chrome::DIR_GEN_TEST_DATA, &app_dir_);
- app_dir_ = app_dir_.AppendASCII(
- "ppapi/tests/extensions/background_keepalive/newlib");
- }
+ : extension_(NULL) {}
virtual ~AppBackgroundPageNaClTest() {
}
@@ -143,12 +139,15 @@
protected:
void LaunchTestingApp() {
- extension_ = LoadExtension(app_dir_);
+ base::FilePath app_dir;
+ PathService::Get(chrome::DIR_GEN_TEST_DATA, &app_dir);
+ app_dir = app_dir.AppendASCII(
+ "ppapi/tests/extensions/background_keepalive/newlib");
+ extension_ = LoadExtension(app_dir);
ASSERT_TRUE(extension_);
}
private:
- base::FilePath app_dir_;
const Extension* extension_;
};

Powered by Google App Engine
This is Rietveld 408576698