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

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

Issue 7782026: Switch from chrome://extensions to chrome://settings/extensionSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kGuestSession)) { 245 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kGuestSession)) {
246 new_tab_message_ids = IDS_NEW_TAB_GUEST_SESSION_MESSAGE; 246 new_tab_message_ids = IDS_NEW_TAB_GUEST_SESSION_MESSAGE;
247 new_tab_html_idr = IDR_GUEST_SESSION_TAB_HTML; 247 new_tab_html_idr = IDR_GUEST_SESSION_TAB_HTML;
248 new_tab_link = kLearnMoreGuestSessionUrl; 248 new_tab_link = kLearnMoreGuestSessionUrl;
249 } 249 }
250 #endif 250 #endif
251 localized_strings.SetString("content", 251 localized_strings.SetString("content",
252 l10n_util::GetStringFUTF16(new_tab_message_ids, 252 l10n_util::GetStringFUTF16(new_tab_message_ids,
253 GetUrlWithLang(GURL(new_tab_link)))); 253 GetUrlWithLang(GURL(new_tab_link))));
254 localized_strings.SetString("extensionsmessage", 254 localized_strings.SetString("extensionsmessage",
255 l10n_util::GetStringFUTF16(IDS_NEW_TAB_OTR_EXTENSIONS_MESSAGE, 255 l10n_util::GetStringFUTF16(
256 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME), 256 IDS_NEW_TAB_OTR_EXTENSIONS_MESSAGE,
257 ASCIIToUTF16(chrome::kChromeUIExtensionsURL))); 257 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME),
258 ASCIIToUTF16(GURL(chrome::kChromeUISettingsURL).Resolve(
259 chrome::kExtensionsSubPage).spec())));
258 bool bookmark_bar_attached = profile_->GetPrefs()->GetBoolean( 260 bool bookmark_bar_attached = profile_->GetPrefs()->GetBoolean(
259 prefs::kShowBookmarkBar); 261 prefs::kShowBookmarkBar);
260 localized_strings.SetString("bookmarkbarattached", 262 localized_strings.SetString("bookmarkbarattached",
261 bookmark_bar_attached ? "true" : "false"); 263 bookmark_bar_attached ? "true" : "false");
262 264
263 ChromeURLDataManager::DataSource::SetFontAndTextDirection(&localized_strings); 265 ChromeURLDataManager::DataSource::SetFontAndTextDirection(&localized_strings);
264 266
265 static const base::StringPiece incognito_tab_html( 267 static const base::StringPiece incognito_tab_html(
266 ResourceBundle::GetSharedInstance().GetRawDataResource( 268 ResourceBundle::GetSharedInstance().GetRawDataResource(
267 new_tab_html_idr)); 269 new_tab_html_idr));
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS; 586 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS;
585 static const base::StringPiece new_tab_theme_css( 587 static const base::StringPiece new_tab_theme_css(
586 ResourceBundle::GetSharedInstance().GetRawDataResource( 588 ResourceBundle::GetSharedInstance().GetRawDataResource(
587 ntp_css_resource_id)); 589 ntp_css_resource_id));
588 590
589 // Create the string from our template and the replacements. 591 // Create the string from our template and the replacements.
590 std::string css_string; 592 std::string css_string;
591 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 593 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
592 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 594 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
593 } 595 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698