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

Side by Side Diff: chrome/browser/chromeos/extensions/wallpaper_manager_api.cc

Issue 10453032: Add wallpaper experimental api framework and add a simple category list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698