| OLD | NEW |
| 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 "apps/app_launcher.h" | 10 #include "apps/app_launcher.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/google/google_util.h" | 24 #include "chrome/browser/google/google_util.h" |
| 25 #include "chrome/browser/policy/browser_policy_connector.h" | 25 #include "chrome/browser/policy/browser_policy_connector.h" |
| 26 #include "chrome/browser/profiles/profile.h" | 26 #include "chrome/browser/profiles/profile.h" |
| 27 #include "chrome/browser/search/search.h" | 27 #include "chrome/browser/search/search.h" |
| 28 #include "chrome/browser/sync/profile_sync_service.h" | 28 #include "chrome/browser/sync/profile_sync_service.h" |
| 29 #include "chrome/browser/sync/profile_sync_service_factory.h" | 29 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 30 #include "chrome/browser/themes/theme_properties.h" | 30 #include "chrome/browser/themes/theme_properties.h" |
| 31 #include "chrome/browser/themes/theme_service.h" | 31 #include "chrome/browser/themes/theme_service.h" |
| 32 #include "chrome/browser/themes/theme_service_factory.h" | 32 #include "chrome/browser/themes/theme_service_factory.h" |
| 33 #include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h" | 33 #include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h" |
| 34 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
| 34 #include "chrome/browser/ui/webui/ntp/new_tab_page_handler.h" | 35 #include "chrome/browser/ui/webui/ntp/new_tab_page_handler.h" |
| 35 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 36 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
| 36 #include "chrome/browser/ui/webui/ntp/ntp_login_handler.h" | 37 #include "chrome/browser/ui/webui/ntp/ntp_login_handler.h" |
| 37 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" | |
| 38 #include "chrome/browser/ui/webui/sync_setup_handler.h" | 38 #include "chrome/browser/ui/webui/sync_setup_handler.h" |
| 39 #include "chrome/browser/web_resource/notification_promo.h" | 39 #include "chrome/browser/web_resource/notification_promo.h" |
| 40 #include "chrome/common/chrome_notification_types.h" | 40 #include "chrome/common/chrome_notification_types.h" |
| 41 #include "chrome/common/chrome_switches.h" | 41 #include "chrome/common/chrome_switches.h" |
| 42 #include "chrome/common/extensions/extension.h" | 42 #include "chrome/common/extensions/extension.h" |
| 43 #include "chrome/common/extensions/extension_constants.h" | 43 #include "chrome/common/extensions/extension_constants.h" |
| 44 #include "chrome/common/pref_names.h" | 44 #include "chrome/common/pref_names.h" |
| 45 #include "chrome/common/url_constants.h" | 45 #include "chrome/common/url_constants.h" |
| 46 #include "content/public/browser/browser_thread.h" | 46 #include "content/public/browser/browser_thread.h" |
| 47 #include "content/public/browser/notification_service.h" | 47 #include "content/public/browser/notification_service.h" |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 // Get our template. | 628 // Get our template. |
| 629 static const base::StringPiece new_tab_theme_css( | 629 static const base::StringPiece new_tab_theme_css( |
| 630 ResourceBundle::GetSharedInstance().GetRawDataResource( | 630 ResourceBundle::GetSharedInstance().GetRawDataResource( |
| 631 IDR_NEW_TAB_4_THEME_CSS)); | 631 IDR_NEW_TAB_4_THEME_CSS)); |
| 632 | 632 |
| 633 // Create the string from our template and the replacements. | 633 // Create the string from our template and the replacements. |
| 634 std::string css_string; | 634 std::string css_string; |
| 635 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); | 635 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); |
| 636 new_tab_css_ = base::RefCountedString::TakeString(&css_string); | 636 new_tab_css_ = base::RefCountedString::TakeString(&css_string); |
| 637 } | 637 } |
| OLD | NEW |