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

Side by Side Diff: chrome/common/extensions/api/sockets/sockets_manifest_data.cc

Issue 105473003: Add explicit base namespace to string16 users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 #include "chrome/common/extensions/api/sockets/sockets_manifest_data.h" 5 #include "chrome/common/extensions/api/sockets/sockets_manifest_data.h"
6 6
7 #include "chrome/common/extensions/api/sockets/sockets_manifest_permission.h" 7 #include "chrome/common/extensions/api/sockets/sockets_manifest_permission.h"
8 #include "extensions/common/manifest_constants.h" 8 #include "extensions/common/manifest_constants.h"
9 9
10 namespace extensions { 10 namespace extensions {
(...skipping 20 matching lines...) Expand all
31 const SocketsManifestData* data = SocketsManifestData::Get(extension); 31 const SocketsManifestData* data = SocketsManifestData::Get(extension);
32 if (data) 32 if (data)
33 return data->permission()->CheckRequest(extension, request); 33 return data->permission()->CheckRequest(extension, request);
34 34
35 return false; 35 return false;
36 } 36 }
37 37
38 // static 38 // static
39 scoped_ptr<SocketsManifestData> SocketsManifestData::FromValue( 39 scoped_ptr<SocketsManifestData> SocketsManifestData::FromValue(
40 const base::Value& value, 40 const base::Value& value,
41 string16* error) { 41 base::string16* error) {
42 scoped_ptr<SocketsManifestPermission> permission = 42 scoped_ptr<SocketsManifestPermission> permission =
43 SocketsManifestPermission::FromValue(value, error); 43 SocketsManifestPermission::FromValue(value, error);
44 if (!permission) 44 if (!permission)
45 return scoped_ptr<SocketsManifestData>(); 45 return scoped_ptr<SocketsManifestData>();
46 46
47 return scoped_ptr<SocketsManifestData>( 47 return scoped_ptr<SocketsManifestData>(
48 new SocketsManifestData(permission.Pass())).Pass(); 48 new SocketsManifestData(permission.Pass())).Pass();
49 } 49 }
50 50
51 } // namespace extensions 51 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698