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

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

Issue 530963002: Move IDS_LEARN_MORE to components_strings.grd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/media_stream_infobar_delegate.h" 5 #include "chrome/browser/media/media_stream_infobar_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/infobars/infobar_service.h" 10 #include "chrome/browser/infobars/infobar_service.h"
11 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
12 #include "chrome/grit/generated_resources.h" 12 #include "chrome/grit/generated_resources.h"
13 #include "components/google/core/browser/google_util.h" 13 #include "components/google/core/browser/google_util.h"
14 #include "components/infobars/core/infobar.h" 14 #include "components/infobars/core/infobar.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "grit/components_strings.h"
16 #include "grit/theme_resources.h" 17 #include "grit/theme_resources.h"
17 #include "ui/base/l10n/l10n_util.h" 18 #include "ui/base/l10n/l10n_util.h"
18 #include "url/gurl.h" 19 #include "url/gurl.h"
19 20
20 namespace { 21 namespace {
21 22
22 enum DevicePermissionActions { 23 enum DevicePermissionActions {
23 kAllowHttps = 0, 24 kAllowHttps = 0,
24 kAllowHttp, 25 kAllowHttp,
25 kDeny, 26 kDeny,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 WindowOpenDisposition disposition) { 141 WindowOpenDisposition disposition) {
141 InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL( 142 InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL(
142 content::OpenURLParams( 143 content::OpenURLParams(
143 GURL(chrome::kMediaAccessLearnMoreUrl), 144 GURL(chrome::kMediaAccessLearnMoreUrl),
144 content::Referrer(), 145 content::Referrer(),
145 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, 146 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
146 content::PAGE_TRANSITION_LINK, false)); 147 content::PAGE_TRANSITION_LINK, false));
147 148
148 return false; // Do not dismiss the info bar. 149 return false; // Do not dismiss the info bar.
149 } 150 }
OLDNEW
« no previous file with comments | « chrome/browser/infobars/insecure_content_infobar_delegate.cc ('k') | chrome/browser/nacl_host/nacl_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698