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

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

Issue 1920263003: Rename gfx::Display/Screen to display::Display/Screen in chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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_data_fetcher.h" 5 #include "chrome/browser/banners/app_banner_data_fetcher.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 11 matching lines...) Expand all
22 #include "components/rappor/rappor_utils.h" 22 #include "components/rappor/rappor_utils.h"
23 #include "content/public/browser/browser_context.h" 23 #include "content/public/browser/browser_context.h"
24 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
25 #include "content/public/browser/navigation_details.h" 25 #include "content/public/browser/navigation_details.h"
26 #include "content/public/browser/render_frame_host.h" 26 #include "content/public/browser/render_frame_host.h"
27 #include "content/public/browser/service_worker_context.h" 27 #include "content/public/browser/service_worker_context.h"
28 #include "content/public/browser/storage_partition.h" 28 #include "content/public/browser/storage_partition.h"
29 #include "net/base/load_flags.h" 29 #include "net/base/load_flags.h"
30 #include "third_party/WebKit/public/platform/WebDisplayMode.h" 30 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
31 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm ptReply.h" 31 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm ptReply.h"
32 #include "ui/gfx/screen.h"
33 32
34 namespace { 33 namespace {
35 34
36 base::LazyInstance<base::TimeDelta> gTimeDeltaForTesting = 35 base::LazyInstance<base::TimeDelta> gTimeDeltaForTesting =
37 LAZY_INSTANCE_INITIALIZER; 36 LAZY_INSTANCE_INITIALIZER;
38 int gCurrentRequestID = -1; 37 int gCurrentRequestID = -1;
39 const char kPngExtension[] = ".png"; 38 const char kPngExtension[] = ".png";
40 39
41 // The requirement for now is an image/png that is at least 144x144. 40 // The requirement for now is an image/png that is at least 144x144.
42 const int kIconMinimumSize = 144; 41 const int kIconMinimumSize = 144;
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 479
481 if (!DoesManifestContainRequiredIcon(manifest)) { 480 if (!DoesManifestContainRequiredIcon(manifest)) {
482 OutputDeveloperNotShownMessage(web_contents, kManifestMissingSuitableIcon, 481 OutputDeveloperNotShownMessage(web_contents, kManifestMissingSuitableIcon,
483 is_debug_mode); 482 is_debug_mode);
484 return false; 483 return false;
485 } 484 }
486 return true; 485 return true;
487 } 486 }
488 487
489 } // namespace banners 488 } // namespace banners
OLDNEW
« no previous file with comments | « chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc ('k') | chrome/browser/banners/app_banner_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698