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

Side by Side Diff: third_party/WebKit/Source/modules/installedapp/InstalledAppVerificationManager.cpp

Issue 1586563009: IsNativeAppInstalled 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 unified diff | Download patch
OLDNEW
(Empty)
1 #include "modules/installedapp/InstalledAppVerificationManager.h"
2
3 #include "bindings/core/v8/Dictionary.h"
4 #include "wtf/text/WTFString.h"
5 #include "public/platform/WebVector.h"
6
7 namespace blink {
8
9 bool InstalledAppVerificationManager::get(const WebString& key, WebString& value ) const
10 {
11 String dictValue;
12 bool isValid = DictionaryHelper::get(m_dictionary, String(key), dictValue);
13 if (isValid) {
14 value = dictValue;
15 }
16 return isValid;
17 }
18
19 bool InstalledAppVerificationManager::getVector(const WebString& key, WebVector< WebString>& value) const
20 {
21 Vector<String> dictValue;
22 bool isValid = DictionaryHelper::get(m_dictionary, String(key), dictValue);
23 if (isValid) {
24 value = dictValue;
25 }
26 return isValid;
27 }
28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698