| Index: chrome/browser/extensions/api/sessions/sessions_apitest.cc
|
| diff --git a/chrome/browser/extensions/api/sessions/sessions_apitest.cc b/chrome/browser/extensions/api/sessions/sessions_apitest.cc
|
| index 6d0a7f1282554390d58d086693d8f5ea6fe82bd9..e8980ae0f615c7a1be939f9958f6e142afbed23c 100644
|
| --- a/chrome/browser/extensions/api/sessions/sessions_apitest.cc
|
| +++ b/chrome/browser/extensions/api/sessions/sessions_apitest.cc
|
| @@ -25,6 +25,10 @@
|
| #include "sync/api/fake_sync_change_processor.h"
|
| #include "sync/api/sync_error_factory_mock.h"
|
|
|
| +#if defined(OS_CHROMEOS)
|
| +#include "chromeos/chromeos_switches.h"
|
| +#endif
|
| +
|
| namespace utils = extension_function_test_utils;
|
|
|
| namespace extensions {
|
| @@ -78,6 +82,7 @@ void BuildTabSpecifics(const std::string& tag, int window_id, int tab_id,
|
|
|
| class ExtensionSessionsTest : public InProcessBrowserTest {
|
| public:
|
| + virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
|
| virtual void SetUpOnMainThread() OVERRIDE;
|
| protected:
|
| void CreateTestProfileSyncService();
|
| @@ -96,6 +101,13 @@ class ExtensionSessionsTest : public InProcessBrowserTest {
|
| scoped_refptr<extensions::Extension> extension_;
|
| };
|
|
|
| +void ExtensionSessionsTest::SetUpCommandLine(CommandLine* command_line) {
|
| +#if defined(OS_CHROMEOS)
|
| + command_line->AppendSwitch(
|
| + chromeos::switches::kIgnoreUserProfileMappingForTests);
|
| +#endif
|
| +}
|
| +
|
| void ExtensionSessionsTest::SetUpOnMainThread() {
|
| CreateTestProfileSyncService();
|
| CreateTestExtension();
|
|
|