diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-23 20:08:21 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-23 20:08:21 +0000 |
commit | dbb9aa45617ebf4b521f066b3cd69a06b5a627d4 (patch) | |
tree | 031ecfb8c98d2a211d4a9e91064cb86622e29307 /chrome/browser/spellchecker/spelling_service_client.cc | |
parent | cb1078deccdc5b13af302c2cf83fce308e534490 (diff) | |
download | chromium_src-dbb9aa45617ebf4b521f066b3cd69a06b5a627d4.zip chromium_src-dbb9aa45617ebf4b521f066b3cd69a06b5a627d4.tar.gz chromium_src-dbb9aa45617ebf4b521f066b3cd69a06b5a627d4.tar.bz2 |
Update some uses of Value in chrome/browser to use the base:: namespace.
BUG=88666
TEST=no change
TBR=ben@chromium.org
Review URL: https://codereview.chromium.org/113013003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker/spelling_service_client.cc')
-rw-r--r-- | chrome/browser/spellchecker/spelling_service_client.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/spellchecker/spelling_service_client.cc b/chrome/browser/spellchecker/spelling_service_client.cc index 248c2295..8ef8bcf 100644 --- a/chrome/browser/spellchecker/spelling_service_client.cc +++ b/chrome/browser/spellchecker/spelling_service_client.cc @@ -183,21 +183,21 @@ bool SpellingServiceClient::ParseResponse( // "data": [...] // } // } - scoped_ptr<DictionaryValue> value( - static_cast<DictionaryValue*>( + scoped_ptr<base::DictionaryValue> value( + static_cast<base::DictionaryValue*>( base::JSONReader::Read(data, base::JSON_ALLOW_TRAILING_COMMAS))); if (!value.get() || !value->IsType(base::Value::TYPE_DICTIONARY)) return false; // Check for errors from spelling service. - DictionaryValue* error = NULL; + base::DictionaryValue* error = NULL; if (value->GetDictionary(kErrorPath, &error)) return false; // Retrieve the array of Misspelling objects. When the input text does not // have misspelled words, it returns an empty JSON. (In this case, its HTTP // status is 200.) We just return true for this case. - ListValue* misspellings = NULL; + base::ListValue* misspellings = NULL; if (!value->GetList(kMisspellingsPath, &misspellings)) return true; @@ -205,20 +205,20 @@ bool SpellingServiceClient::ParseResponse( // Retrieve the i-th misspelling region and put it to the given vector. When // the Spelling service sends two or more suggestions, we read only the // first one because SpellCheckResult can store only one suggestion. - DictionaryValue* misspelling = NULL; + base::DictionaryValue* misspelling = NULL; if (!misspellings->GetDictionary(i, &misspelling)) return false; int start = 0; int length = 0; - ListValue* suggestions = NULL; + base::ListValue* suggestions = NULL; if (!misspelling->GetInteger("charStart", &start) || !misspelling->GetInteger("charLength", &length) || !misspelling->GetList("suggestions", &suggestions)) { return false; } - DictionaryValue* suggestion = NULL; + base::DictionaryValue* suggestion = NULL; base::string16 replacement; if (!suggestions->GetDictionary(0, &suggestion) || !suggestion->GetString("suggestion", &replacement)) { |