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

Side by Side Diff: chrome/browser/dom_ui/ntp_resource_cache.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/dom_ui/ntp_resource_cache.h" 5 #include "chrome/browser/dom_ui/ntp_resource_cache.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/animation.h" 10 #include "app/animation.h"
11 #include "app/l10n_util.h" 11 #include "app/l10n_util.h"
12 #include "app/resource_bundle.h" 12 #include "app/resource_bundle.h"
13 #include "app/theme_provider.h" 13 #include "app/theme_provider.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/file_util.h" 15 #include "base/file_util.h"
16 #include "base/ref_counted_memory.h" 16 #include "base/ref_counted_memory.h"
17 #include "base/string16.h" 17 #include "base/string16.h"
18 #include "base/string_number_conversions.h" 18 #include "base/string_number_conversions.h"
19 #include "base/time.h" 19 #include "base/time.h"
20 #include "base/utf_string_conversions.h" 20 #include "base/utf_string_conversions.h"
21 #include "base/values.h" 21 #include "base/values.h"
22 #include "chrome/browser/browser_thread.h" 22 #include "chrome/browser/browser_thread.h"
23 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 23 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
24 #include "chrome/browser/dom_ui/shown_sections_handler.h" 24 #include "chrome/browser/dom_ui/shown_sections_handler.h"
25 #include "chrome/browser/google/google_util.h" 25 #include "chrome/browser/google/google_util.h"
26 #include "chrome/browser/prefs/pref_service.h" 26 #include "chrome/browser/prefs/pref_service.h"
27 #include "chrome/browser/profile.h" 27 #include "chrome/browser/profiles/profile.h"
28 #include "chrome/browser/themes/browser_theme_provider.h" 28 #include "chrome/browser/themes/browser_theme_provider.h"
29 #include "chrome/browser/web_resource/web_resource_service.h" 29 #include "chrome/browser/web_resource/web_resource_service.h"
30 #include "chrome/common/chrome_switches.h" 30 #include "chrome/common/chrome_switches.h"
31 #include "chrome/common/extensions/extension.h" 31 #include "chrome/common/extensions/extension.h"
32 #include "chrome/common/extensions/extension_constants.h" 32 #include "chrome/common/extensions/extension_constants.h"
33 #include "chrome/common/jstemplate_builder.h" 33 #include "chrome/common/jstemplate_builder.h"
34 #include "chrome/common/notification_service.h" 34 #include "chrome/common/notification_service.h"
35 #include "chrome/common/notification_type.h" 35 #include "chrome/common/notification_type.h"
36 #include "chrome/common/pref_names.h" 36 #include "chrome/common/pref_names.h"
37 #include "chrome/common/url_constants.h" 37 #include "chrome/common/url_constants.h"
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 std::string css_string; 547 std::string css_string;
548 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 548 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
549 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); 549 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL);
550 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); 550 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL);
551 551
552 new_tab_css_ = new RefCountedBytes; 552 new_tab_css_ = new RefCountedBytes;
553 new_tab_css_->data.resize(css_string.size()); 553 new_tab_css_->data.resize(css_string.size());
554 std::copy(css_string.begin(), css_string.end(), 554 std::copy(css_string.begin(), css_string.end(),
555 new_tab_css_->data.begin()); 555 new_tab_css_->data.begin());
556 } 556 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/ntp_login_handler.cc ('k') | chrome/browser/dom_ui/options/add_startup_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698