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

Side by Side Diff: extensions/common/permissions/manifest_permission_set.h

Issue 107803004: Add base:: to string16 in extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove a using Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_SET_H_ 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_SET_H_
6 #define EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_SET_H_ 6 #define EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_SET_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 20 matching lines...) Expand all
31 public: 31 public:
32 // Parses permissions from |permissions| and adds the parsed permissions to 32 // Parses permissions from |permissions| and adds the parsed permissions to
33 // |manifest_permissions|. If |unhandled_permissions| is not NULL, the names 33 // |manifest_permissions|. If |unhandled_permissions| is not NULL, the names
34 // of all permissions that couldn't be parsed will be added to this vector. 34 // of all permissions that couldn't be parsed will be added to this vector.
35 // If |error| is NULL, parsing will continue with the next permission if 35 // If |error| is NULL, parsing will continue with the next permission if
36 // invalid data is detected. If |error| is not NULL, it will be set to an 36 // invalid data is detected. If |error| is not NULL, it will be set to an
37 // error message and false is returned when an invalid permission is found. 37 // error message and false is returned when an invalid permission is found.
38 static bool ParseFromJSON( 38 static bool ParseFromJSON(
39 const base::ListValue* permissions, 39 const base::ListValue* permissions,
40 ManifestPermissionSet* manifest_permissions, 40 ManifestPermissionSet* manifest_permissions,
41 string16* error, 41 base::string16* error,
42 std::vector<std::string>* unhandled_permissions); 42 std::vector<std::string>* unhandled_permissions);
43 }; 43 };
44 44
45 } // namespace extensions 45 } // namespace extensions
46 46
47 #endif // EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_SET_H_ 47 #endif // EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_SET_H_
OLDNEW
« no previous file with comments | « extensions/common/permissions/api_permission_set.cc ('k') | extensions/common/permissions/manifest_permission_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698