OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |