| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/banners/app_banner_manager_desktop.h" | 5 #include "chrome/browser/banners/app_banner_manager_desktop.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/browser/banners/app_banner_data_fetcher_desktop.h" | 9 #include "chrome/browser/banners/app_banner_data_fetcher_desktop.h" |
| 10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #if defined(OS_CHROMEOS) | 24 #if defined(OS_CHROMEOS) |
| 25 return !base::CommandLine::ForCurrentProcess()->HasSwitch( | 25 return !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 26 switches::kDisableAddToShelf); | 26 switches::kDisableAddToShelf); |
| 27 #else | 27 #else |
| 28 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 28 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 29 switches::kEnableAddToShelf); | 29 switches::kEnableAddToShelf); |
| 30 #endif | 30 #endif |
| 31 } | 31 } |
| 32 | 32 |
| 33 AppBannerDataFetcher* AppBannerManagerDesktop::CreateAppBannerDataFetcher( | 33 AppBannerDataFetcher* AppBannerManagerDesktop::CreateAppBannerDataFetcher( |
| 34 base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate) { | 34 base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate, |
| 35 bool is_debug_mode) { |
| 35 return new AppBannerDataFetcherDesktop(web_contents(), weak_delegate, | 36 return new AppBannerDataFetcherDesktop(web_contents(), weak_delegate, |
| 36 kMinimumIconSize, | 37 kMinimumIconSize, kMinimumIconSize, |
| 37 kMinimumIconSize); | 38 is_debug_mode); |
| 38 } | 39 } |
| 39 | 40 |
| 40 AppBannerManagerDesktop::AppBannerManagerDesktop( | 41 AppBannerManagerDesktop::AppBannerManagerDesktop( |
| 41 content::WebContents* web_contents) | 42 content::WebContents* web_contents) |
| 42 : AppBannerManager(web_contents) { | 43 : AppBannerManager(web_contents) { |
| 43 } | 44 } |
| 44 | 45 |
| 45 } // namespace banners | 46 } // namespace banners |
| OLD | NEW |