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

Side by Side Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 7621032: Initial inline web store install bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback. Created 9 years, 4 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
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/ui/webui/ntp/ntp_resource_cache.h" 5 #include "chrome/browser/ui/webui/ntp/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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_PINNED)); 345 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_PINNED));
346 localized_strings.SetString("applaunchtyperegular", 346 localized_strings.SetString("applaunchtyperegular",
347 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_REGULAR)); 347 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_REGULAR));
348 localized_strings.SetString("applaunchtypewindow", 348 localized_strings.SetString("applaunchtypewindow",
349 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_WINDOW)); 349 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_WINDOW));
350 localized_strings.SetString("applaunchtypefullscreen", 350 localized_strings.SetString("applaunchtypefullscreen",
351 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_FULLSCREEN)); 351 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_FULLSCREEN));
352 localized_strings.SetString("web_store_title", 352 localized_strings.SetString("web_store_title",
353 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE)); 353 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE));
354 localized_strings.SetString("web_store_url", 354 localized_strings.SetString("web_store_url",
355 GetUrlWithLang(GURL(Extension::ChromeStoreLaunchURL()))); 355 GetUrlWithLang(GURL(extension_misc::GetWebstoreLaunchURL())));
356 localized_strings.SetString("syncpromotext", 356 localized_strings.SetString("syncpromotext",
357 l10n_util::GetStringUTF16(IDS_SYNC_START_SYNC_BUTTON_LABEL)); 357 l10n_util::GetStringUTF16(IDS_SYNC_START_SYNC_BUTTON_LABEL));
358 localized_strings.SetString("syncLinkText", 358 localized_strings.SetString("syncLinkText",
359 l10n_util::GetStringUTF16(IDS_SYNC_ADVANCED_OPTIONS)); 359 l10n_util::GetStringUTF16(IDS_SYNC_ADVANCED_OPTIONS));
360 localized_strings.SetString("trashLabel", 360 localized_strings.SetString("trashLabel",
361 l10n_util::GetStringFUTF16( 361 l10n_util::GetStringFUTF16(
362 IDS_NEW_TAB_TRASH_LABEL, 362 IDS_NEW_TAB_TRASH_LABEL,
363 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME))); 363 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME)));
364 #if defined(OS_CHROMEOS) 364 #if defined(OS_CHROMEOS)
365 localized_strings.SetString("expandMenu", 365 localized_strings.SetString("expandMenu",
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS; 611 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS;
612 static const base::StringPiece new_tab_theme_css( 612 static const base::StringPiece new_tab_theme_css(
613 ResourceBundle::GetSharedInstance().GetRawDataResource( 613 ResourceBundle::GetSharedInstance().GetRawDataResource(
614 ntp_css_resource_id)); 614 ntp_css_resource_id));
615 615
616 // Create the string from our template and the replacements. 616 // Create the string from our template and the replacements.
617 std::string css_string; 617 std::string css_string;
618 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 618 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
619 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 619 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
620 } 620 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_inline_install_browsertest.cc ('k') | chrome/chrome_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698