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

Side by Side Diff: chrome/browser/banners/app_banner_manager_desktop.cc

Issue 1569893003: Add "Request app banner" context menu in DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated pfeldman's comment Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/banners/app_banner_manager_desktop.h ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/banners/app_banner_manager_desktop.h ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698