Index: chrome/browser/chromeos/extensions/wallpaper_manager_api.cc |
diff --git a/chrome/browser/chromeos/extensions/wallpaper_manager_api.cc b/chrome/browser/chromeos/extensions/wallpaper_manager_api.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..31595141b1b16fc7cb055caaf3c1d5695eb1e3ff |
--- /dev/null |
+++ b/chrome/browser/chromeos/extensions/wallpaper_manager_api.cc |
@@ -0,0 +1,25 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/chromeos/extensions/wallpaper_manager_api.h" |
+#include "grit/generated_resources.h" |
+#include "ui/base/l10n/l10n_util.h" |
+ |
+bool WallpaperManagerStringsFunction::RunImpl() { |
+ result_.reset(new DictionaryValue()); |
+ DictionaryValue* dict = reinterpret_cast<DictionaryValue*>(result_.get()); |
+ |
+#define SET_STRING(ns, id) \ |
+ dict->SetString(#id, l10n_util::GetStringUTF16(ns##_##id)) |
+ |
+ SET_STRING(IDS_WALLPAPER_MANAGER, FEATURED_LABEL); |
+ SET_STRING(IDS_WALLPAPER_MANAGER, NATURE_LABEL); |
+ SET_STRING(IDS_WALLPAPER_MANAGER, ABSTRACT_LABEL); |
+ SET_STRING(IDS_WALLPAPER_MANAGER, URBAN_LABEL); |
+ SET_STRING(IDS_WALLPAPER_MANAGER, COLORS_LABEL); |
+ SET_STRING(IDS_WALLPAPER_MANAGER, CUSTOM_LABEL); |
+#undef SET_STRING |
+ |
+ return true; |
+} |