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

Side by Side Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h

Issue 2090133003: Moved methods that don't rely on internal state out of ChromeLauncherController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed to profile_ Created 4 years, 5 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 2016 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 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_UTIL_H_
msw 2016/06/27 18:50:26 nit: this is ok for now, but we might want to find
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_UTIL_H_
7
8 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
9
10 namespace extensions {
11 class Extension;
12 }
13
14 class Browser;
15
16 // Returns true if |browser| is owned by the active user.
17 bool IsBrowserFromActiveUser(Browser* browser);
18
19 // Returns the extension identified by |app_id|.
20 const extensions::Extension* GetExtensionForAppID(const std::string& app_id,
21 Profile* profile);
22
23 // TODO(khmel): Find better home for Pinnable enum.
msw 2016/06/27 18:50:26 nit: move this comment to the enum decl; add a fun
24 AppListControllerDelegate::Pinnable GetPinnableForAppID(
25 const std::string& app_id,
26 Profile* profile);
27
28 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698