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" | |
|
mfomitchev
2016/06/23 19:41:57
Don't include browser.h and extension.h here, just
StarAZ
2016/06/23 20:12:41
Done.
| |
| 10 #include "extensions/common/extension.h" | |
| 11 | |
| 12 // Returns true if |browser| is owned by the active user. | |
| 13 bool IsBrowserFromActiveUser(Browser* browser); | |
| 14 | |
| 15 // Returns the extension identified by |app_id|. | |
| 16 const extensions::Extension* GetExtensionForAppID(const std::string& app_id, | |
| 17 Profile* profile); | |
| 18 | |
| 19 // TODO(khmel): Find better home for Pinnable enum. | |
| 20 AppListControllerDelegate::Pinnable GetPinnableForAppID( | |
| 21 const std::string& app_id, | |
| 22 Profile* profile); | |
| 23 | |
| 24 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_UTIL_H_ | |
| OLD | NEW |