Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 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_ | |
| 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 #include "chrome/browser/ui/browser.h" | |
| 10 #include "extensions/common/extension.h" | |
| 11 | |
| 12 namespace chrome { | |
| 13 namespace util { | |
|
mfomitchev
2016/06/23 16:00:27
I'd get rid of the namespaces. I think this should
StarAZ
2016/06/23 19:35:03
Acknowledged.
| |
| 14 | |
| 15 // Returns true if |browser| is owned by the active user. | |
| 16 bool IsBrowserFromActiveUser(Browser* browser); | |
| 17 | |
| 18 // Returns the extension identified by |app_id|. | |
| 19 const extensions::Extension* GetExtensionForAppID(Profile* profile, | |
|
mfomitchev
2016/06/23 16:00:27
nit: make profile the second argument. Typically t
StarAZ
2016/06/23 19:35:03
Acknowledged.
| |
| 20 const std::string& app_id); | |
| 21 | |
| 22 // TODO(khmel): Find better home for Pinnable enum. | |
| 23 AppListControllerDelegate::Pinnable GetPinnable(Profile* profile, | |
|
mfomitchev
2016/06/23 16:00:27
Perhaps rename GetPinnable to GetPinnableForAppID
mfomitchev
2016/06/23 16:00:27
Ditto
StarAZ
2016/06/23 19:35:03
Acknowledged.
| |
| 24 const std::string& app_id); | |
| 25 | |
| 26 } // namespace util | |
| 27 } // namespace chrome | |
| 28 | |
| 29 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_UTIL_H_ | |
| OLD | NEW |