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

Side by Side Diff: chrome/browser/ui/views/athena/athena_util.cc

Issue 603033002: Get FileSelect dialog work on athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698