File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 48
48
#include " chrome/browser/renderer_context_menu/render_view_context_menu_test_util.h"
49
49
#include " chrome/browser/task_manager/task_manager_browsertest_util.h"
50
50
#include " chrome/browser/ui/browser.h"
51
+ #include " chrome/browser/ui/browser_list.h"
51
52
#include " chrome/browser/ui/browser_commands.h"
52
53
#include " chrome/browser/ui/browser_dialogs.h"
53
54
#include " chrome/browser/ui/tabs/tab_strip_model.h"
@@ -875,6 +876,9 @@ IN_PROC_BROWSER_TEST_F(NWAppTest, LocalFlash) {
875
876
876
877
LoadAndLaunchPlatformApp (" local_flash" , " Launched" );
877
878
content::WebContents* web_contents = GetFirstAppWindowWebContents ();
879
+ if (base::FeatureList::IsEnabled (::features::kNWNewWin )) {
880
+ web_contents = BrowserList::GetInstance ()->GetLastActive ()->tab_strip_model ()->GetActiveWebContents ();
881
+ }
878
882
ASSERT_TRUE (web_contents);
879
883
base::string16 expected_title (base::ASCIIToUTF16 (" Loaded" ));
880
884
content::TitleWatcher title_watcher (web_contents, expected_title);
You can’t perform that action at this time.
0 commit comments