GitHub PullRequestReviewCommentEvent at 2014-04-22 07:33:57
Repository: crosswalk
Actor: pozdnyakov
Payload: {"comment":{"url":"https://api.github.com/repos/crosswalk-project/crosswalk/pulls/comments/11841258","id":11841258,"diff_hunk":"@@ -0,0 +1,103 @@\n+// Copyright (c) 2014 Intel Corporation. All rights reserved.\n+// Use of this source code is governed by a BSD-style license that can be\n+// found in the LICENSE file.\n+\n+#include \"xwalk/application/common/manifest_handlers/tizen_metadata_handler.h\"\n+\n+#include <map>\n+#include <utility>\n+\n+#include \"base/strings/utf_string_conversions.h\"\n+#include \"base/values.h\"\n+#include \"xwalk/application/common/application_manifest_constants.h\"\n+\n+\n+namespace xwalk {\n+\n+namespace keys = application_widget_keys;\n+\n+typedef std::pair<std::string, std::string> MetaDataPair;\n+typedef std::map<std::string, std::string> MetaDataMap;\n+typedef std::map<std::string, std::string>::const_iterator MetaDataIter;\n+\n+namespace {\n+\n+MetaDataPair ParseMetaDataItem(const base::DictionaryValue* dict) {\n+  DCHECK(dict && dict->IsType(base::Value::TYPE_DICTIONARY));\n+  MetaDataPair result;\n+  std::string key;\n+  std::string value;\n+  if (!dict->GetString(keys::kTizenMetaDataNameKey, &key))\n+    return result;\n+\n+  result.first = key;\n+  if (dict->GetString(keys::kTizenMetaDataValueKey, &value))\n+    result.second = value;\n+\n+  return result;\n+}\n+}  // namespace\n+\n+namespace application {\n+\n+TizenMetaDataInfo::TizenMetaDataInfo() {}\n+\n+TizenMetaDataInfo::~TizenMetaDataInfo() {}\n+\n+bool TizenMetaDataInfo::HasKey(const std::string& key) {","path":"application/common/manifest_handlers/tizen_metadata_handler.cc","position":47,"original_position":47,"commit_id":"1217543aa4d1404cd36b2e189ef2e7deb34d5110","original_commit_id":"1217543aa4d1404cd36b2e189ef2e7deb34d5110","user":{"login":"pozdnyakov","id":998253,"avatar_url":"https://avatars.githubusercontent.com/u/998253?","gravatar_id":"4ffb512f7312fbe30369fb8b78de59af","url":"https://api.github.com/users/pozdnyakov","html_url":"https://github.com/pozdnyakov","followers_url":"https://api.github.com/users/pozdnyakov/followers","following_url":"https://api.github.com/users/pozdnyakov/following{/other_user}","gists_url":"https://api.github.com/users/pozdnyakov/gists{/gist_id}","starred_url":"https://api.github.com/users/pozdnyakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pozdnyakov/subscriptions","organizations_url":"https://api.github.com/users/pozdnyakov/orgs","repos_url":"https://api.github.com/users/pozdnyakov/repos","events_url":"https://api.github.com/users/pozdnyakov/events{/privacy}","received_events_url":"https://api.github.com/users/pozdnyakov/received_events","type":"User","site_admin":false},"body":"const method","created_at":"2014-04-22T07:33:57Z","updated_at":"2014-04-22T07:33:57Z","html_url":"https://github.com/crosswalk-project/crosswalk/pull/1843#discussion_r11841258","pull_request_url":"https://api.github.com/repos/crosswalk-project/crosswalk/pulls/1843","_links":{"self":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk/pulls/comments/11841258"},"html":{"href":"https://github.com/crosswalk-project/crosswalk/pull/1843#discussion_r11841258"},"pull_request":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk/pulls/1843"}}}}