app_list_controller_delegate.cc revision 3551c9c881056c480085172ff9840cab31610854
1// Copyright (c) 2012 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#include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
6
7#include "base/logging.h"
8#include "chrome/browser/browser_process.h"
9#include "chrome/browser/profiles/profile_manager.h"
10#include "ui/gfx/image/image_skia.h"
11
12AppListControllerDelegate::~AppListControllerDelegate() {}
13
14void AppListControllerDelegate::ViewClosing() {}
15
16gfx::ImageSkia AppListControllerDelegate::GetWindowIcon() {
17  return gfx::ImageSkia();
18}
19
20bool AppListControllerDelegate::IsAppPinned(const std::string& extension_id) {
21  return false;
22}
23
24void AppListControllerDelegate::PinApp(const std::string& extension_id) {}
25
26void AppListControllerDelegate::UnpinApp(const std::string& extension_id) {}
27
28void AppListControllerDelegate::DoCreateShortcutsFlow(
29    Profile* profile,
30    const std::string& extension_id) {}
31
32void AppListControllerDelegate::CreateNewWindow(Profile* profile,
33                                                bool incognito) {
34  NOTREACHED();
35}
36
37bool AppListControllerDelegate::ShouldShowUserIcon() {
38  return g_browser_process->profile_manager()->GetNumberOfProfiles() > 1;
39}
40