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

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

Issue 7562019: ntp: remove dead first run code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile fix Created 9 years, 4 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/webui/ntp/new_tab_ui.cc ('k') | chrome/common/chrome_switches.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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 localized_strings.SetString("pinthumbnailtooltip", 317 localized_strings.SetString("pinthumbnailtooltip",
318 l10n_util::GetStringUTF16(IDS_NEW_TAB_PIN_THUMBNAIL_TOOLTIP)); 318 l10n_util::GetStringUTF16(IDS_NEW_TAB_PIN_THUMBNAIL_TOOLTIP));
319 localized_strings.SetString("unpinthumbnailtooltip", 319 localized_strings.SetString("unpinthumbnailtooltip",
320 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNPIN_THUMBNAIL_TOOLTIP)); 320 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNPIN_THUMBNAIL_TOOLTIP));
321 localized_strings.SetString("showhidethumbnailtooltip", 321 localized_strings.SetString("showhidethumbnailtooltip",
322 l10n_util::GetStringUTF16(IDS_NEW_TAB_SHOW_HIDE_THUMBNAIL_TOOLTIP)); 322 l10n_util::GetStringUTF16(IDS_NEW_TAB_SHOW_HIDE_THUMBNAIL_TOOLTIP));
323 localized_strings.SetString("showhidelisttooltip", 323 localized_strings.SetString("showhidelisttooltip",
324 l10n_util::GetStringUTF16(IDS_NEW_TAB_SHOW_HIDE_LIST_TOOLTIP)); 324 l10n_util::GetStringUTF16(IDS_NEW_TAB_SHOW_HIDE_LIST_TOOLTIP));
325 localized_strings.SetString("pagedisplaytooltip", 325 localized_strings.SetString("pagedisplaytooltip",
326 l10n_util::GetStringUTF16(IDS_NEW_TAB_PAGE_DISPLAY_TOOLTIP)); 326 l10n_util::GetStringUTF16(IDS_NEW_TAB_PAGE_DISPLAY_TOOLTIP));
327 localized_strings.SetString("closefirstrunnotification",
328 l10n_util::GetStringUTF16(IDS_NEW_TAB_CLOSE_FIRST_RUN_NOTIFICATION));
329 localized_strings.SetString("close", l10n_util::GetStringUTF16(IDS_CLOSE)); 327 localized_strings.SetString("close", l10n_util::GetStringUTF16(IDS_CLOSE));
330 localized_strings.SetString("history", 328 localized_strings.SetString("history",
331 l10n_util::GetStringUTF16(IDS_NEW_TAB_HISTORY)); 329 l10n_util::GetStringUTF16(IDS_NEW_TAB_HISTORY));
332 localized_strings.SetString("downloads", 330 localized_strings.SetString("downloads",
333 l10n_util::GetStringUTF16(IDS_NEW_TAB_DOWNLOADS)); 331 l10n_util::GetStringUTF16(IDS_NEW_TAB_DOWNLOADS));
334 localized_strings.SetString("help", 332 localized_strings.SetString("help",
335 l10n_util::GetStringUTF16(IDS_NEW_TAB_HELP)); 333 l10n_util::GetStringUTF16(IDS_NEW_TAB_HELP));
336 localized_strings.SetString("helpurl", 334 localized_strings.SetString("helpurl",
337 GetUrlWithLang(GURL(kHelpContentUrl))); 335 GetUrlWithLang(GURL(kHelpContentUrl)));
338 localized_strings.SetString("appsettings", 336 localized_strings.SetString("appsettings",
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS; 575 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS;
578 static const base::StringPiece new_tab_theme_css( 576 static const base::StringPiece new_tab_theme_css(
579 ResourceBundle::GetSharedInstance().GetRawDataResource( 577 ResourceBundle::GetSharedInstance().GetRawDataResource(
580 ntp_css_resource_id)); 578 ntp_css_resource_id));
581 579
582 // Create the string from our template and the replacements. 580 // Create the string from our template and the replacements.
583 std::string css_string; 581 std::string css_string;
584 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 582 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
585 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 583 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
586 } 584 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698