Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/views/athena/athena_util.h" | |
| 6 | |
| 7 #include "athena/activity/public/activity.h" | |
| 8 #include "athena/activity/public/activity_manager.h" | |
| 9 #include "athena/wm/public/window_list_provider.h" | |
| 10 #include "athena/wm/public/window_manager.h" | |
| 11 | |
| 12 content::WebContents* GetWebContentsForWindow( | |
| 13 aura::Window* owner_window) { | |
|
Jun Mukai
2014/09/25 00:24:05
Doesn't this fit into the previous line?
oshima
2014/09/25 00:36:06
reformatted by 'git cl format'
| |
| 14 if (!owner_window) { | |
| 15 athena::WindowListProvider* window_list = | |
| 16 athena::WindowManager::Get()->GetWindowListProvider(); | |
| 17 DCHECK(window_list->GetWindowList().size()); | |
| 18 owner_window = window_list->GetWindowList().back(); | |
| 19 } | |
| 20 athena::Activity* activity = | |
| 21 athena::ActivityManager::Get()->GetActivityForWindow(owner_window); | |
| 22 return activity->GetWebContents(); | |
| 23 } | |
| OLD | NEW |