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 228393004: Create bookmarks component with names of bookmark preferences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-upload with --no-find-copies Created 6 years, 8 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 20 matching lines...) Expand all
31 #include "chrome/browser/ui/sync/sync_promo_ui.h" 31 #include "chrome/browser/ui/sync/sync_promo_ui.h"
32 #include "chrome/browser/ui/webui/ntp/new_tab_page_handler.h" 32 #include "chrome/browser/ui/webui/ntp/new_tab_page_handler.h"
33 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" 33 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
34 #include "chrome/browser/ui/webui/ntp/ntp_login_handler.h" 34 #include "chrome/browser/ui/webui/ntp/ntp_login_handler.h"
35 #include "chrome/browser/ui/webui/sync_setup_handler.h" 35 #include "chrome/browser/ui/webui/sync_setup_handler.h"
36 #include "chrome/browser/web_resource/notification_promo.h" 36 #include "chrome/browser/web_resource/notification_promo.h"
37 #include "chrome/common/chrome_switches.h" 37 #include "chrome/common/chrome_switches.h"
38 #include "chrome/common/extensions/extension_constants.h" 38 #include "chrome/common/extensions/extension_constants.h"
39 #include "chrome/common/pref_names.h" 39 #include "chrome/common/pref_names.h"
40 #include "chrome/common/url_constants.h" 40 #include "chrome/common/url_constants.h"
41 #include "components/bookmarks/bookmark_pref_names.h"
41 #include "content/public/browser/browser_thread.h" 42 #include "content/public/browser/browser_thread.h"
42 #include "content/public/browser/notification_service.h" 43 #include "content/public/browser/notification_service.h"
43 #include "content/public/browser/render_process_host.h" 44 #include "content/public/browser/render_process_host.h"
44 #include "extensions/common/extension.h" 45 #include "extensions/common/extension.h"
45 #include "grit/browser_resources.h" 46 #include "grit/browser_resources.h"
46 #include "grit/chromium_strings.h" 47 #include "grit/chromium_strings.h"
47 #include "grit/generated_resources.h" 48 #include "grit/generated_resources.h"
48 #include "grit/locale_settings.h" 49 #include "grit/locale_settings.h"
49 #include "grit/theme_resources.h" 50 #include "grit/theme_resources.h"
50 #include "ui/base/l10n/l10n_util.h" 51 #include "ui/base/l10n/l10n_util.h"
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 // Get our template. 706 // Get our template.
706 static const base::StringPiece new_tab_theme_css( 707 static const base::StringPiece new_tab_theme_css(
707 ResourceBundle::GetSharedInstance().GetRawDataResource( 708 ResourceBundle::GetSharedInstance().GetRawDataResource(
708 IDR_NEW_TAB_4_THEME_CSS)); 709 IDR_NEW_TAB_4_THEME_CSS));
709 710
710 // Create the string from our template and the replacements. 711 // Create the string from our template and the replacements.
711 std::string css_string; 712 std::string css_string;
712 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 713 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
713 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 714 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
714 } 715 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698