diff options
author | xji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 22:56:28 +0000 |
---|---|---|
committer | xji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 22:56:28 +0000 |
commit | 198bcfe93dd75609fd50caca76f702b28934f48c (patch) | |
tree | 5fb68a530c89540fd43ecfed4bf8b69bf75ad3d9 /chrome/browser/extensions/extension_i18n_apitest.cc | |
parent | bcc9ae958d2f957a8deb766f994b3039758e4ee6 (diff) | |
download | chromium_src-198bcfe93dd75609fd50caca76f702b28934f48c.zip chromium_src-198bcfe93dd75609fd50caca76f702b28934f48c.tar.gz chromium_src-198bcfe93dd75609fd50caca76f702b28934f48c.tar.bz2 |
Added chrome.i18n extension API.
The API proposal doc is
http://sites.google.com/a/chromium.org/dev/developers/design-documents/extensions/i18n-api
This CL only adds the getter of accept languages:
chrome.i18n.getAcceptLanguages().
The setter of accept languages will be added in a separate CL.
BUG=http://crbug.com/14574
TEST=TEST=There is an extension in chrome\test\data\extensions\samples\i18n.
Load this extension. It creates a toolstrip button. Click this button, you
should get chrome's accept languages.
Review URL: http://codereview.chromium.org/174116
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25810 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_i18n_apitest.cc')
-rw-r--r-- | chrome/browser/extensions/extension_i18n_apitest.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_i18n_apitest.cc b/chrome/browser/extensions/extension_i18n_apitest.cc new file mode 100644 index 0000000..2798a72 --- /dev/null +++ b/chrome/browser/extensions/extension_i18n_apitest.cc @@ -0,0 +1,9 @@ +// Copyright (c) 2009 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/extensions/extension_apitest.h" + +IN_PROC_BROWSER_TEST_F(ExtensionApiTest, I18N) { + ASSERT_TRUE(RunExtensionTest("i18n")) << message_; +} |