OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/chromeos/extensions/wallpaper_manager_api.h" |
| 6 #include "grit/generated_resources.h" |
| 7 #include "ui/base/l10n/l10n_util.h" |
| 8 |
| 9 bool WallpaperManagerStringsFunction::RunImpl() { |
| 10 result_.reset(new DictionaryValue()); |
| 11 DictionaryValue* dict = reinterpret_cast<DictionaryValue*>(result_.get()); |
| 12 |
| 13 #define SET_STRING(ns, id) \ |
| 14 dict->SetString(#id, l10n_util::GetStringUTF16(ns##_##id)) |
| 15 |
| 16 SET_STRING(IDS_WALLPAPER_MANAGER, FEATURED_LABEL); |
| 17 SET_STRING(IDS_WALLPAPER_MANAGER, NATURE_LABEL); |
| 18 SET_STRING(IDS_WALLPAPER_MANAGER, ABSTRACT_LABEL); |
| 19 SET_STRING(IDS_WALLPAPER_MANAGER, URBAN_LABEL); |
| 20 SET_STRING(IDS_WALLPAPER_MANAGER, COLORS_LABEL); |
| 21 SET_STRING(IDS_WALLPAPER_MANAGER, CUSTOM_LABEL); |
| 22 #undef SET_STRING |
| 23 |
| 24 return true; |
| 25 } |
OLD | NEW |