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

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

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Fix more compile errors in JNI files Created 4 years 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_manager.h" 5 #include "chrome/browser/banners/app_banner_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "chrome/browser/banners/app_banner_metrics.h" 14 #include "chrome/browser/banners/app_banner_metrics.h"
15 #include "chrome/browser/banners/app_banner_settings_helper.h" 15 #include "chrome/browser/banners/app_banner_settings_helper.h"
16 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
17 #include "chrome/browser/engagement/site_engagement_service.h" 17 #include "chrome/browser/engagement/site_engagement_service.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/common/chrome_switches.h" 19 #include "chrome/common/chrome_switches.h"
20 #include "components/rappor/rappor_utils.h" 20 #include "components/rappor/public/rappor_utils.h"
21 #include "components/rappor/rappor_service_impl.h"
21 #include "content/public/browser/navigation_handle.h" 22 #include "content/public/browser/navigation_handle.h"
22 #include "content/public/browser/render_frame_host.h" 23 #include "content/public/browser/render_frame_host.h"
23 #include "content/public/browser/web_contents.h" 24 #include "content/public/browser/web_contents.h"
24 #include "content/public/common/origin_util.h" 25 #include "content/public/common/origin_util.h"
25 #include "services/service_manager/public/cpp/interface_provider.h" 26 #include "services/service_manager/public/cpp/interface_provider.h"
26 #include "third_party/skia/include/core/SkBitmap.h" 27 #include "third_party/skia/include/core/SkBitmap.h"
27 #include "ui/display/display.h" 28 #include "ui/display/display.h"
28 #include "ui/display/screen.h" 29 #include "ui/display/screen.h"
29 30
30 namespace { 31 namespace {
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 // Simulate a non-canceled OnBannerPromptReply to show the delayed banner. 540 // Simulate a non-canceled OnBannerPromptReply to show the delayed banner.
540 // Don't reset |was_canceled_by_page_| yet for metrics purposes. 541 // Don't reset |was_canceled_by_page_| yet for metrics purposes.
541 OnBannerPromptReply(blink::mojom::AppBannerPromptReply::NONE, referrer_); 542 OnBannerPromptReply(blink::mojom::AppBannerPromptReply::NONE, referrer_);
542 } else { 543 } else {
543 // Log that the prompt request was made for when we get the prompt reply. 544 // Log that the prompt request was made for when we get the prompt reply.
544 page_requested_prompt_ = true; 545 page_requested_prompt_ = true;
545 } 546 }
546 } 547 }
547 548
548 } // namespace banners 549 } // namespace banners
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698