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

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
« no previous file with comments | « chrome/browser/ui/panels/panel_settings_menu_model.cc ('k') | chrome/common/url_constants.h » ('j') | 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) 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(std::string(chrome::kChromeUISettingsURL) +
259 chrome::kExtensionsSubPage)));
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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS; 590 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS;
589 static const base::StringPiece new_tab_theme_css( 591 static const base::StringPiece new_tab_theme_css(
590 ResourceBundle::GetSharedInstance().GetRawDataResource( 592 ResourceBundle::GetSharedInstance().GetRawDataResource(
591 ntp_css_resource_id)); 593 ntp_css_resource_id));
592 594
593 // Create the string from our template and the replacements. 595 // Create the string from our template and the replacements.
594 std::string css_string; 596 std::string css_string;
595 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 597 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
596 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 598 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
597 } 599 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_settings_menu_model.cc ('k') | chrome/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698