OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/renderer/manifest/manifest_parser.h" |
| 6 |
| 7 ChromeManifestParser::ChromeManifestParser() |
| 8 : ManifestParser() {} |
| 9 |
| 10 ChromeManifestParser::~ChromeManifestParser() {} |
| 11 |
| 12 void ChromeManifestParser::ParseExtensionPoint( |
| 13 const base::DictionaryValue& dictionary) { |
| 14 manifest_.gcm_sender_id = ParseGCMSenderID(dictionary); |
| 15 manifest_.gcm_user_visible_only = ParseGCMUserVisibleOnly(dictionary); |
| 16 } |
| 17 |
| 18 base::NullableString16 ChromeManifestParser::ParseGCMSenderID( |
| 19 const base::DictionaryValue& dictionary) { |
| 20 return ParseString(dictionary, "gcm_sender_id", Trim); |
| 21 } |
| 22 |
| 23 bool ChromeManifestParser::ParseGCMUserVisibleOnly( |
| 24 const base::DictionaryValue& dictionary) { |
| 25 return ParseBoolean(dictionary, "gcm_user_visible_only", false); |
| 26 } |
OLD | NEW |