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

Unified Diff: chrome/browser/automation/automation_extension_function.cc

Issue 316016: Move the json-related files into a separate json directory. This hopefully al... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/string_escape_unittest.cc ('k') | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_extension_function.cc
===================================================================
--- chrome/browser/automation/automation_extension_function.cc (revision 29830)
+++ chrome/browser/automation/automation_extension_function.cc (working copy)
@@ -6,8 +6,8 @@
#include "chrome/browser/automation/automation_extension_function.h"
-#include "base/json_reader.h"
-#include "base/json_writer.h"
+#include "base/json/json_reader.h"
+#include "base/json/json_writer.h"
#include "chrome/browser/automation/extension_automation_constants.h"
#include "chrome/browser/extensions/extension_function_dispatcher.h"
#include "chrome/browser/renderer_host/render_view_host.h"
@@ -16,7 +16,7 @@
bool AutomationExtensionFunction::enabled_ = false;
void AutomationExtensionFunction::SetArgs(const Value* args) {
- JSONWriter::Write(args, false, &args_);
+ base::JSONWriter::Write(args, false, &args_);
}
const std::string AutomationExtensionFunction::GetResult() {
@@ -42,7 +42,7 @@
message_to_host.SetBoolean(keys::kAutomationHasCallbackKey, has_callback_);
std::string message;
- JSONWriter::Write(&message_to_host, false, &message);
+ base::JSONWriter::Write(&message_to_host, false, &message);
dispatcher()->render_view_host_->delegate()->ProcessExternalHostMessage(
message, keys::kAutomationOrigin, keys::kAutomationRequestTarget);
}
@@ -82,7 +82,7 @@
target == keys::kAutomationResponseTarget) {
// This is an extension API response being sent back via postMessage,
// so redirect it.
- scoped_ptr<Value> message_value(JSONReader::Read(message, false));
+ scoped_ptr<Value> message_value(base::JSONReader::Read(message, false));
DCHECK(message_value->IsType(Value::TYPE_DICTIONARY));
if (message_value->IsType(Value::TYPE_DICTIONARY)) {
DictionaryValue* message_dict =
Property changes on: chrome/browser/automation/automation_extension_function.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « base/string_escape_unittest.cc ('k') | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698