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

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

Issue 972143002: Update learn more links on incognito NTP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #include "chrome/browser/platform_util.h" 69 #include "chrome/browser/platform_util.h"
70 #endif 70 #endif
71 71
72 using content::BrowserThread; 72 using content::BrowserThread;
73 73
74 namespace { 74 namespace {
75 75
76 // The URL for the the Learn More page shown on incognito new tab. 76 // The URL for the the Learn More page shown on incognito new tab.
77 const char kLearnMoreIncognitoUrl[] = 77 const char kLearnMoreIncognitoUrl[] =
78 #if defined(OS_CHROMEOS) 78 #if defined(OS_CHROMEOS)
79 "https://www.google.com/support/chromeos/bin/answer.py?answer=95464"; 79 "https://support.google.com/chromebook/?p=incognito";
80 #else 80 #else
81 "https://www.google.com/support/chrome/bin/answer.py?answer=95464"; 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://www.google.com/support/chromeos/bin/answer.py?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
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 // Get our template. 720 // Get our template.
721 static const base::StringPiece new_tab_theme_css( 721 static const base::StringPiece new_tab_theme_css(
722 ResourceBundle::GetSharedInstance().GetRawDataResource( 722 ResourceBundle::GetSharedInstance().GetRawDataResource(
723 IDR_NEW_TAB_4_THEME_CSS)); 723 IDR_NEW_TAB_4_THEME_CSS));
724 724
725 // Create the string from our template and the replacements. 725 // Create the string from our template and the replacements.
726 std::string css_string; 726 std::string css_string;
727 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 727 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
728 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 728 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
729 } 729 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698