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

Unified 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: Modifications according to the comments Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
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..1ae7324099871ef53625e932f79dabb9808aee7d
--- /dev/null
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h
@@ -0,0 +1,24 @@
+// Copyright (c) 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_
+#define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_UTIL_H_
+
+#include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
+#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.
+#include "extensions/common/extension.h"
+
+// 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.
+AppListControllerDelegate::Pinnable GetPinnableForAppID(
+ const std::string& app_id,
+ Profile* profile);
+
+#endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698