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

Side by Side Diff: chrome/browser/extensions/platform_app_browsertest_util.cc

Issue 10825240: Refactor ShellWindow to separate platform-specific code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/app_window/app_window_api.cc ('k') | chrome/browser/extensions/shell_window_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698