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

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

Issue 5340007: NTP update for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: default to close THUMB and RECENT section 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"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 localized_strings.SetString("web_store_url", 327 localized_strings.SetString("web_store_url",
328 GetUrlWithLang(GURL(Extension::ChromeStoreLaunchURL()))); 328 GetUrlWithLang(GURL(Extension::ChromeStoreLaunchURL())));
329 localized_strings.SetString("appspromohide", 329 localized_strings.SetString("appspromohide",
330 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HIDE)); 330 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HIDE));
331 localized_strings.SetString("appspromoheader", 331 localized_strings.SetString("appspromoheader",
332 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HEADER)); 332 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HEADER));
333 localized_strings.SetString("appspromotext1", 333 localized_strings.SetString("appspromotext1",
334 l10n_util::GetStringUTF16(IDS_APPS_PROMO_TEXT_1)); 334 l10n_util::GetStringUTF16(IDS_APPS_PROMO_TEXT_1));
335 localized_strings.SetString("appspromotext2", 335 localized_strings.SetString("appspromotext2",
336 l10n_util::GetStringUTF16(IDS_APPS_PROMO_TEXT_2)); 336 l10n_util::GetStringUTF16(IDS_APPS_PROMO_TEXT_2));
337 #if defined(OS_CHROMEOS)
338 localized_strings.SetString("expandMenu",
339 l10n_util::GetStringUTF16(IDS_NEW_TAB_CLOSE_MENU_EXPAND));
340 #endif
337 341
338 // Don't initiate the sync related message passing with the page if the sync 342 // Don't initiate the sync related message passing with the page if the sync
339 // code is not present. 343 // code is not present.
340 if (profile_->GetProfileSyncService()) 344 if (profile_->GetProfileSyncService())
341 localized_strings.SetString("syncispresent", "true"); 345 localized_strings.SetString("syncispresent", "true");
342 else 346 else
343 localized_strings.SetString("syncispresent", "false"); 347 localized_strings.SetString("syncispresent", "false");
344 348
345 ChromeURLDataManager::DataSource::SetFontAndTextDirection(&localized_strings); 349 ChromeURLDataManager::DataSource::SetFontAndTextDirection(&localized_strings);
346 350
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 std::string css_string; 545 std::string css_string;
542 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 546 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
543 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); 547 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL);
544 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); 548 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL);
545 549
546 new_tab_css_ = new RefCountedBytes; 550 new_tab_css_ = new RefCountedBytes;
547 new_tab_css_->data.resize(css_string.size()); 551 new_tab_css_->data.resize(css_string.size());
548 std::copy(css_string.begin(), css_string.end(), 552 std::copy(css_string.begin(), css_string.end(),
549 new_tab_css_->data.begin()); 553 new_tab_css_->data.begin());
550 } 554 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698