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

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

Issue 6313009: Add possibility to divide chrome users into groups of equal size, and change ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/new_new_tab.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 localized_strings.SetString("web_store_url", 330 localized_strings.SetString("web_store_url",
331 GetUrlWithLang(GURL(Extension::ChromeStoreLaunchURL()))); 331 GetUrlWithLang(GURL(Extension::ChromeStoreLaunchURL())));
332 localized_strings.SetString("appspromohide", 332 localized_strings.SetString("appspromohide",
333 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HIDE)); 333 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HIDE));
334 localized_strings.SetString("appspromoheader", 334 localized_strings.SetString("appspromoheader",
335 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HEADER)); 335 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HEADER));
336 localized_strings.SetString("appspromotext1", 336 localized_strings.SetString("appspromotext1",
337 l10n_util::GetStringUTF16(IDS_APPS_PROMO_TEXT_1)); 337 l10n_util::GetStringUTF16(IDS_APPS_PROMO_TEXT_1));
338 localized_strings.SetString("appspromotext2", 338 localized_strings.SetString("appspromotext2",
339 l10n_util::GetStringUTF16(IDS_APPS_PROMO_TEXT_2)); 339 l10n_util::GetStringUTF16(IDS_APPS_PROMO_TEXT_2));
340 localized_strings.SetString("syncpromotext",
341 l10n_util::GetStringUTF16(IDS_SYNC_START_SYNC_BUTTON_LABEL));
340 #if defined(OS_CHROMEOS) 342 #if defined(OS_CHROMEOS)
341 localized_strings.SetString("expandMenu", 343 localized_strings.SetString("expandMenu",
342 l10n_util::GetStringUTF16(IDS_NEW_TAB_CLOSE_MENU_EXPAND)); 344 l10n_util::GetStringUTF16(IDS_NEW_TAB_CLOSE_MENU_EXPAND));
343 #endif 345 #endif
344 346
345 // Don't initiate the sync related message passing with the page if the sync 347 // Don't initiate the sync related message passing with the page if the sync
346 // code is not present. 348 // code is not present.
347 if (profile_->GetProfileSyncService()) 349 if (profile_->GetProfileSyncService())
348 localized_strings.SetString("syncispresent", "true"); 350 localized_strings.SetString("syncispresent", "true");
349 else 351 else
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 std::string css_string; 550 std::string css_string;
549 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 551 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
550 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); 552 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL);
551 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); 553 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL);
552 554
553 new_tab_css_ = new RefCountedBytes; 555 new_tab_css_ = new RefCountedBytes;
554 new_tab_css_->data.resize(css_string.size()); 556 new_tab_css_->data.resize(css_string.size());
555 std::copy(css_string.begin(), css_string.end(), 557 std::copy(css_string.begin(), css_string.end(),
556 new_tab_css_->data.begin()); 558 new_tab_css_->data.begin());
557 } 559 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/new_new_tab.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698