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

Unified Diff: chrome/browser/automation/extension_port_container.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 | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/bookmarks/bookmark_storage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/extension_port_container.cc
===================================================================
--- chrome/browser/automation/extension_port_container.cc (revision 29830)
+++ chrome/browser/automation/extension_port_container.cc (working copy)
@@ -5,8 +5,8 @@
#include "chrome/browser/automation/extension_port_container.h"
#include "base/logging.h"
-#include "base/json_reader.h"
-#include "base/json_writer.h"
+#include "base/json/json_reader.h"
+#include "base/json/json_writer.h"
#include "base/values.h"
#include "chrome/browser/automation/automation_provider.h"
#include "chrome/browser/automation/extension_automation_constants.h"
@@ -92,7 +92,7 @@
msg_dict->SetInteger(ext::kAutomationPortIdKey, port_id);
std::string msg_json;
- JSONWriter::Write(msg_dict.get(), false, &msg_json);
+ base::JSONWriter::Write(msg_dict.get(), false, &msg_json);
PostResponseToExternalPort(msg_json);
}
@@ -141,7 +141,7 @@
msg_dict.SetString(ext::kAutomationMessageDataKey, message);
std::string msg_json;
- JSONWriter::Write(&msg_dict, false, &msg_json);
+ base::JSONWriter::Write(&msg_dict, false, &msg_json);
PostMessageToExternalPort(msg_json);
}
@@ -153,7 +153,7 @@
msg_dict.SetInteger(ext::kAutomationPortIdKey, port_id_);
std::string msg_json;
- JSONWriter::Write(&msg_dict, false, &msg_json);
+ base::JSONWriter::Write(&msg_dict, false, &msg_json);
PostMessageToExternalPort(msg_json);
}
@@ -170,7 +170,7 @@
LOG(WARNING) << "Wrong origin on automation port message " << origin;
}
- 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))
return true;
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/bookmarks/bookmark_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698