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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseResource.cpp

Issue 1702673002: DevTools: migrate remote debugging protocol generators to jinja2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseResource.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseResource.cpp b/third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseResource.cpp
index d6c9545121046f4542ce42e6f378f5569647b211..87a31b0834e675db5dd9d388ec1f62a92f7abfa5 100644
--- a/third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseResource.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseResource.cpp
@@ -57,12 +57,12 @@ DEFINE_TRACE(InspectorDatabaseResource)
void InspectorDatabaseResource::bind(protocol::Frontend::Database* frontend)
{
- RefPtr<protocol::TypeBuilder::Database::Database> jsonObject = protocol::TypeBuilder::Database::Database::create()
+ OwnPtr<protocol::Database::Database> jsonObject = protocol::Database::Database::create()
.setId(m_id)
.setDomain(m_domain)
.setName(m_name)
- .setVersion(m_version);
- frontend->addDatabase(jsonObject);
+ .setVersion(m_version).build();
+ frontend->addDatabase(jsonObject.release());
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698