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

Side by Side Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 1144193005: Fix a lot of support links. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bug 490887 Created 5 years, 7 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/ui/webui/ntp/ntp_resource_cache.h" 5 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const char kLearnMoreIncognitoUrl[] = 77 const char kLearnMoreIncognitoUrl[] =
78 #if defined(OS_CHROMEOS) 78 #if defined(OS_CHROMEOS)
79 "https://support.google.com/chromebook/?p=incognito"; 79 "https://support.google.com/chromebook/?p=incognito";
80 #else 80 #else
81 "https://support.google.com/chrome/?p=incognito"; 81 "https://support.google.com/chrome/?p=incognito";
82 #endif 82 #endif
83 83
84 // The URL for the Learn More page shown on guest session new tab. 84 // The URL for the Learn More page shown on guest session new tab.
85 const char kLearnMoreGuestSessionUrl[] = 85 const char kLearnMoreGuestSessionUrl[] =
86 #if defined(OS_CHROMEOS) 86 #if defined(OS_CHROMEOS)
87 "https://www.google.com/support/chromeos/bin/answer.py?answer=1057090"; 87 "https://support.google.com/chromebook/answer/1057090";
88 #else 88 #else
89 "https://support.google.com/chrome/?p=ui_guest"; 89 "https://support.google.com/chrome/?p=ui_guest";
90 #endif 90 #endif
91 91
92 std::string SkColorToRGBAString(SkColor color) { 92 std::string SkColorToRGBAString(SkColor color) {
93 // We convert the alpha using DoubleToString because StringPrintf will use 93 // We convert the alpha using DoubleToString because StringPrintf will use
94 // locale specific formatters (e.g., use , instead of . in German). 94 // locale specific formatters (e.g., use , instead of . in German).
95 return base::StringPrintf( 95 return base::StringPrintf(
96 "rgba(%d,%d,%d,%s)", 96 "rgba(%d,%d,%d,%s)",
97 SkColorGetR(color), 97 SkColorGetR(color),
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 // Get our template. 689 // Get our template.
690 static const base::StringPiece new_tab_theme_css( 690 static const base::StringPiece new_tab_theme_css(
691 ResourceBundle::GetSharedInstance().GetRawDataResource( 691 ResourceBundle::GetSharedInstance().GetRawDataResource(
692 IDR_NEW_TAB_4_THEME_CSS)); 692 IDR_NEW_TAB_4_THEME_CSS));
693 693
694 // Create the string from our template and the replacements. 694 // Create the string from our template and the replacements.
695 std::string css_string; 695 std::string css_string;
696 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 696 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
697 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 697 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
698 } 698 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc ('k') | chrome/common/extensions/docs/templates/articles/a11y.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698