| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 | 8 |
| 9 #include "base/feature_list.h" | 9 #include "base/feature_list.h" |
| 10 #include "base/memory/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h" | 25 #include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h" |
| 26 #include "chrome/browser/ui/webui/app_launcher_login_handler.h" | 26 #include "chrome/browser/ui/webui/app_launcher_login_handler.h" |
| 27 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" | 27 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" |
| 28 #include "chrome/common/chrome_features.h" | 28 #include "chrome/common/chrome_features.h" |
| 29 #include "chrome/common/features.h" | 29 #include "chrome/common/features.h" |
| 30 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
| 31 #include "chrome/common/url_constants.h" | 31 #include "chrome/common/url_constants.h" |
| 32 #include "chrome/grit/browser_resources.h" | 32 #include "chrome/grit/browser_resources.h" |
| 33 #include "chrome/grit/chromium_strings.h" | 33 #include "chrome/grit/chromium_strings.h" |
| 34 #include "chrome/grit/generated_resources.h" | 34 #include "chrome/grit/generated_resources.h" |
| 35 #include "chrome/grit/locale_settings.h" | |
| 36 #include "chrome/grit/theme_resources.h" | 35 #include "chrome/grit/theme_resources.h" |
| 37 #include "components/bookmarks/common/bookmark_pref_names.h" | 36 #include "components/bookmarks/common/bookmark_pref_names.h" |
| 38 #include "components/google/core/browser/google_util.h" | 37 #include "components/google/core/browser/google_util.h" |
| 39 #include "components/prefs/pref_service.h" | 38 #include "components/prefs/pref_service.h" |
| 40 #include "components/signin/core/browser/signin_manager.h" | 39 #include "components/signin/core/browser/signin_manager.h" |
| 41 #include "components/strings/grit/components_strings.h" | 40 #include "components/strings/grit/components_strings.h" |
| 42 #include "content/public/browser/browser_thread.h" | 41 #include "content/public/browser/browser_thread.h" |
| 43 #include "content/public/browser/notification_service.h" | 42 #include "content/public/browser/notification_service.h" |
| 44 #include "content/public/browser/render_process_host.h" | 43 #include "content/public/browser/render_process_host.h" |
| 45 #include "extensions/common/extension.h" | 44 #include "extensions/common/extension.h" |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 // Get our template. | 594 // Get our template. |
| 596 static const base::StringPiece new_tab_theme_css( | 595 static const base::StringPiece new_tab_theme_css( |
| 597 ResourceBundle::GetSharedInstance().GetRawDataResource( | 596 ResourceBundle::GetSharedInstance().GetRawDataResource( |
| 598 IDR_NEW_TAB_4_THEME_CSS)); | 597 IDR_NEW_TAB_4_THEME_CSS)); |
| 599 | 598 |
| 600 // Create the string from our template and the replacements. | 599 // Create the string from our template and the replacements. |
| 601 std::string css_string = | 600 std::string css_string = |
| 602 ui::ReplaceTemplateExpressions(new_tab_theme_css, substitutions); | 601 ui::ReplaceTemplateExpressions(new_tab_theme_css, substitutions); |
| 603 new_tab_css_ = base::RefCountedString::TakeString(&css_string); | 602 new_tab_css_ = base::RefCountedString::TakeString(&css_string); |
| 604 } | 603 } |
| OLD | NEW |