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

Side by Side Diff: chrome/browser/media/protected_media_identifier_infobar_delegate.cc

Issue 1166603002: Move PermissionRequestID to chrome/browser/permissions/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_rfh
Patch Set: fix build Created 5 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/media/protected_media_identifier_infobar_delegate.h" 5 #include "chrome/browser/media/protected_media_identifier_infobar_delegate.h"
6 6
7 #include "chrome/browser/content_settings/permission_queue_controller.h" 7 #include "chrome/browser/content_settings/permission_queue_controller.h"
8 #include "chrome/browser/infobars/infobar_service.h" 8 #include "chrome/browser/infobars/infobar_service.h"
9 #include "chrome/browser/permissions/permission_request_id.h"
9 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
10 #include "chrome/grit/generated_resources.h" 11 #include "chrome/grit/generated_resources.h"
11 #include "components/infobars/core/infobar.h" 12 #include "components/infobars/core/infobar.h"
12 #include "grit/components_strings.h" 13 #include "grit/components_strings.h"
13 #include "grit/theme_resources.h" 14 #include "grit/theme_resources.h"
14 #include "net/base/net_util.h" 15 #include "net/base/net_util.h"
15 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
16 17
17 // static 18 // static
18 infobars::InfoBar* ProtectedMediaIdentifierInfoBarDelegate::Create( 19 infobars::InfoBar* ProtectedMediaIdentifierInfoBarDelegate::Create(
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool ProtectedMediaIdentifierInfoBarDelegate::LinkClicked( 99 bool ProtectedMediaIdentifierInfoBarDelegate::LinkClicked(
99 WindowOpenDisposition disposition) { 100 WindowOpenDisposition disposition) {
100 InfoBarService::WebContentsFromInfoBar(infobar()) 101 InfoBarService::WebContentsFromInfoBar(infobar())
101 ->OpenURL(content::OpenURLParams( 102 ->OpenURL(content::OpenURLParams(
102 GURL(chrome::kEnhancedPlaybackNotificationLearnMoreURL), 103 GURL(chrome::kEnhancedPlaybackNotificationLearnMoreURL),
103 content::Referrer(), 104 content::Referrer(),
104 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, 105 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
105 ui::PAGE_TRANSITION_LINK, false)); 106 ui::PAGE_TRANSITION_LINK, false));
106 return false; // Do not dismiss the info bar. 107 return false; // Do not dismiss the info bar.
107 } 108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698