| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/extensions/platform_app_browsertest_util.h" | 5 #include "chrome/browser/extensions/platform_app_browsertest_util.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "chrome/browser/extensions/api/tabs/tabs.h" | 9 #include "chrome/browser/extensions/api/tabs/tabs.h" |
| 10 #include "chrome/browser/extensions/extension_function_test_utils.h" | 10 #include "chrome/browser/extensions/extension_function_test_utils.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 } | 145 } |
| 146 | 146 |
| 147 void PlatformAppBrowserTest::CloseShellWindow(ShellWindow* window) { | 147 void PlatformAppBrowserTest::CloseShellWindow(ShellWindow* window) { |
| 148 content::WindowedNotificationObserver destroyed_observer( | 148 content::WindowedNotificationObserver destroyed_observer( |
| 149 content::NOTIFICATION_WEB_CONTENTS_DESTROYED, | 149 content::NOTIFICATION_WEB_CONTENTS_DESTROYED, |
| 150 content::NotificationService::AllSources()); | 150 content::NotificationService::AllSources()); |
| 151 window->GetBaseWindow()->Close(); | 151 window->GetBaseWindow()->Close(); |
| 152 destroyed_observer.Wait(); | 152 destroyed_observer.Wait(); |
| 153 } | 153 } |
| 154 | 154 |
| 155 void ExperimentalPlatformAppBrowserTest::SetUpCommandLine( |
| 156 CommandLine* command_line) { |
| 157 PlatformAppBrowserTest::SetUpCommandLine(command_line); |
| 158 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); |
| 159 } |
| 160 |
| 155 } // namespace extensions | 161 } // namespace extensions |
| OLD | NEW |