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

Side by Side Diff: chrome/renderer/manifest/manifest_parser.cc

Issue 936413003: Allow extensions of the ManifestParser outside of the content/ layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WIP - changing chrome layer relationship Created 5 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698