Chromium Code Reviews| Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h |
| diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ca10b8a624c7e8595ccf6fa4242dbfb42719fe72 |
| --- /dev/null |
| +++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#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
|
| +#define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_UTIL_H_ |
| + |
| +#include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
| + |
| +namespace extensions { |
| +class Extension; |
| +} |
| + |
| +class Browser; |
| + |
| +// Returns true if |browser| is owned by the active user. |
| +bool IsBrowserFromActiveUser(Browser* browser); |
| + |
| +// Returns the extension identified by |app_id|. |
| +const extensions::Extension* GetExtensionForAppID(const std::string& app_id, |
| + Profile* profile); |
| + |
| +// 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
|
| +AppListControllerDelegate::Pinnable GetPinnableForAppID( |
| + const std::string& app_id, |
| + Profile* profile); |
| + |
| +#endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_UTIL_H_ |