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

Side by Side Diff: chrome/browser/plugins/plugin_infobar_delegates.cc

Issue 325963007: Do not append Google locale to help center links (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 6 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 | Annotate | Revision Log
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/plugins/plugin_infobar_delegates.h" 5 #include "chrome/browser/plugins/plugin_infobar_delegates.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/content_settings/host_content_settings_map.h" 10 #include "chrome/browser/content_settings/host_content_settings_map.h"
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 base::string16 PluginInstallerInfoBarDelegate::GetLinkText() const { 386 base::string16 PluginInstallerInfoBarDelegate::GetLinkText() const {
387 return l10n_util::GetStringUTF16(new_install_ ? 387 return l10n_util::GetStringUTF16(new_install_ ?
388 IDS_PLUGININSTALLER_PROBLEMSINSTALLING : 388 IDS_PLUGININSTALLER_PROBLEMSINSTALLING :
389 IDS_PLUGININSTALLER_PROBLEMSUPDATING); 389 IDS_PLUGININSTALLER_PROBLEMSUPDATING);
390 } 390 }
391 391
392 bool PluginInstallerInfoBarDelegate::LinkClicked( 392 bool PluginInstallerInfoBarDelegate::LinkClicked(
393 WindowOpenDisposition disposition) { 393 WindowOpenDisposition disposition) {
394 GURL url(plugin_metadata_->help_url()); 394 GURL url(plugin_metadata_->help_url());
395 if (url.is_empty()) { 395 if (url.is_empty()) {
396 url = google_util::AppendGoogleLocaleParam(GURL( 396 url = GURL(
397 "https://www.google.com/support/chrome/bin/answer.py?answer=142064")); 397 "https://www.google.com/support/chrome/bin/answer.py?answer=142064");
398 } 398 }
399 InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL( 399 InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL(
400 content::OpenURLParams( 400 content::OpenURLParams(
401 url, content::Referrer(), 401 url, content::Referrer(),
402 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, 402 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
403 content::PAGE_TRANSITION_LINK, false)); 403 content::PAGE_TRANSITION_LINK, false));
404 return false; 404 return false;
405 } 405 }
406 406
407 void PluginInstallerInfoBarDelegate::DownloadStarted() { 407 void PluginInstallerInfoBarDelegate::DownloadStarted() {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 "https://support.google.com/chrome/?p=ib_redirect_to_desktop"), 527 "https://support.google.com/chrome/?p=ib_redirect_to_desktop"),
528 content::Referrer(), 528 content::Referrer(),
529 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, 529 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
530 content::PAGE_TRANSITION_LINK, false)); 530 content::PAGE_TRANSITION_LINK, false));
531 return false; 531 return false;
532 } 532 }
533 533
534 #endif // defined(OS_WIN) 534 #endif // defined(OS_WIN)
535 535
536 #endif // defined(ENABLE_PLUGIN_INSTALLATION) 536 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
OLDNEW
« no previous file with comments | « chrome/browser/media/media_stream_infobar_delegate.cc ('k') | chrome/browser/safe_browsing/safe_browsing_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698