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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 const Extension* extension) { | 109 const Extension* extension) { |
110 ShellWindow::CreateParams params; | 110 ShellWindow::CreateParams params; |
111 return ShellWindow::Create( | 111 return ShellWindow::Create( |
112 browser()->profile(), extension, GURL(""), params); | 112 browser()->profile(), extension, GURL(""), params); |
113 } | 113 } |
114 | 114 |
115 void PlatformAppBrowserTest::CloseShellWindow(ShellWindow* window) { | 115 void PlatformAppBrowserTest::CloseShellWindow(ShellWindow* window) { |
116 content::WindowedNotificationObserver destroyed_observer( | 116 content::WindowedNotificationObserver destroyed_observer( |
117 content::NOTIFICATION_WEB_CONTENTS_DESTROYED, | 117 content::NOTIFICATION_WEB_CONTENTS_DESTROYED, |
118 content::NotificationService::AllSources()); | 118 content::NotificationService::AllSources()); |
119 window->Close(); | 119 window->GetBaseWindow()->Close(); |
120 destroyed_observer.Wait(); | 120 destroyed_observer.Wait(); |
121 } | 121 } |
122 | 122 |
123 } // namespace extensions | 123 } // namespace extensions |
OLD | NEW |