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

Side by Side Diff: chrome/browser/android/media/media_throttle_infobar_delegate.cc

Issue 2276823003: Change many chrome/browser includes to use qualified paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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/android/media/media_throttle_infobar_delegate.h" 5 #include "chrome/browser/android/media/media_throttle_infobar_delegate.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
11 #include "chrome/browser/infobars/infobar_service.h" 11 #include "chrome/browser/infobars/infobar_service.h"
12 #include "chrome/grit/generated_resources.h" 12 #include "chrome/grit/generated_resources.h"
13 #include "chrome/grit/theme_resources.h"
13 #include "components/infobars/core/infobar.h" 14 #include "components/infobars/core/infobar.h"
15 #include "components/strings/grit/components_strings.h"
14 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
15 #include "grit/components_strings.h"
16 #include "grit/theme_resources.h"
17 #include "ui/base/l10n/l10n_util.h" 17 #include "ui/base/l10n/l10n_util.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 // static 20 // static
21 void MediaThrottleInfoBarDelegate::Create( 21 void MediaThrottleInfoBarDelegate::Create(
22 content::WebContents* web_contents, 22 content::WebContents* web_contents,
23 const DecodeRequestGrantedCallback& callback) { 23 const DecodeRequestGrantedCallback& callback) {
24 InfoBarService* infobar_service = 24 InfoBarService* infobar_service =
25 InfoBarService::FromWebContents(web_contents); 25 InfoBarService::FromWebContents(web_contents);
26 std::unique_ptr<infobars::InfoBar> new_infobar( 26 std::unique_ptr<infobars::InfoBar> new_infobar(
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool MediaThrottleInfoBarDelegate::Cancel() { 87 bool MediaThrottleInfoBarDelegate::Cancel() {
88 infobar_response_ = UMA_THROTTLE_INFOBAR_TRY_AGAIN; 88 infobar_response_ = UMA_THROTTLE_INFOBAR_TRY_AGAIN;
89 decode_granted_callback_.Run(true); 89 decode_granted_callback_.Run(true);
90 return true; 90 return true;
91 } 91 }
92 92
93 void MediaThrottleInfoBarDelegate::InfoBarDismissed() { 93 void MediaThrottleInfoBarDelegate::InfoBarDismissed() {
94 infobar_response_ = UMA_THROTTLE_INFOBAR_DISMISSED; 94 infobar_response_ = UMA_THROTTLE_INFOBAR_DISMISSED;
95 decode_granted_callback_.Run(false); 95 decode_granted_callback_.Run(false);
96 } 96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698