[Media Router] Add integration tests and e2e tests for media router and presentation...
[chromium-blink-merge.git] / chrome / browser / banners / app_banner_manager_desktop.cc
blobe00bcc53c893cec2e1206089aa38ed3b1ff4c70a
1 // Copyright 2015 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.
5 #include "chrome/browser/banners/app_banner_manager_desktop.h"
7 #include "chrome/browser/banners/app_banner_data_fetcher_desktop.h"
8 #include "extensions/common/constants.h"
10 namespace {
11 // TODO(dominickn) Enforce the set of icons which will guarantee the best
12 // user experience.
13 int kMinimumIconSize = extension_misc::EXTENSION_ICON_LARGE;
14 } // anonymous namespace
16 DEFINE_WEB_CONTENTS_USER_DATA_KEY(banners::AppBannerManagerDesktop);
18 namespace banners {
20 AppBannerDataFetcher* AppBannerManagerDesktop::CreateAppBannerDataFetcher(
21 base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate,
22 const int ideal_icon_size) {
23 return new AppBannerDataFetcherDesktop(web_contents(), weak_delegate,
24 ideal_icon_size);
27 AppBannerManagerDesktop::AppBannerManagerDesktop(
28 content::WebContents* web_contents)
29 : AppBannerManager(web_contents, kMinimumIconSize) {
32 } // namespace banners