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

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

Issue 530963002: Move IDS_LEARN_MORE to components_strings.grd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 6 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
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 29 matching lines...) Expand all
40 #include "chrome/common/url_constants.h" 40 #include "chrome/common/url_constants.h"
41 #include "chrome/grit/chromium_strings.h" 41 #include "chrome/grit/chromium_strings.h"
42 #include "chrome/grit/generated_resources.h" 42 #include "chrome/grit/generated_resources.h"
43 #include "chrome/grit/locale_settings.h" 43 #include "chrome/grit/locale_settings.h"
44 #include "components/google/core/browser/google_util.h" 44 #include "components/google/core/browser/google_util.h"
45 #include "content/public/browser/browser_thread.h" 45 #include "content/public/browser/browser_thread.h"
46 #include "content/public/browser/notification_service.h" 46 #include "content/public/browser/notification_service.h"
47 #include "content/public/browser/render_process_host.h" 47 #include "content/public/browser/render_process_host.h"
48 #include "extensions/common/extension.h" 48 #include "extensions/common/extension.h"
49 #include "grit/browser_resources.h" 49 #include "grit/browser_resources.h"
50 #include "grit/components_strings.h"
50 #include "grit/theme_resources.h" 51 #include "grit/theme_resources.h"
51 #include "ui/base/l10n/l10n_util.h" 52 #include "ui/base/l10n/l10n_util.h"
52 #include "ui/base/resource/resource_bundle.h" 53 #include "ui/base/resource/resource_bundle.h"
53 #include "ui/base/theme_provider.h" 54 #include "ui/base/theme_provider.h"
54 #include "ui/base/webui/jstemplate_builder.h" 55 #include "ui/base/webui/jstemplate_builder.h"
55 #include "ui/base/webui/web_ui_util.h" 56 #include "ui/base/webui/web_ui_util.h"
56 #include "ui/gfx/animation/animation.h" 57 #include "ui/gfx/animation/animation.h"
57 #include "ui/gfx/color_utils.h" 58 #include "ui/gfx/color_utils.h"
58 #include "ui/gfx/sys_color_change_listener.h" 59 #include "ui/gfx/sys_color_change_listener.h"
59 60
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 // Get our template. 715 // Get our template.
715 static const base::StringPiece new_tab_theme_css( 716 static const base::StringPiece new_tab_theme_css(
716 ResourceBundle::GetSharedInstance().GetRawDataResource( 717 ResourceBundle::GetSharedInstance().GetRawDataResource(
717 IDR_NEW_TAB_4_THEME_CSS)); 718 IDR_NEW_TAB_4_THEME_CSS));
718 719
719 // Create the string from our template and the replacements. 720 // Create the string from our template and the replacements.
720 std::string css_string; 721 std::string css_string;
721 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 722 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
722 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 723 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
723 } 724 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/help/help_handler.cc ('k') | chrome/browser/ui/webui/options/automatic_settings_reset_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698