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

Side by Side Diff: chrome/browser/extensions/api/sockets_udp/sockets_udp_api.cc

Issue 179243002: Change ProfileKeyedAPIFactory to build instances with BrowserContext instead of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: locationbarview Created 6 years, 9 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 | 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/browser/extensions/api/sockets_udp/sockets_udp_api.h" 5 #include "chrome/browser/extensions/api/sockets_udp/sockets_udp_api.h"
6 6
7 #include "chrome/browser/extensions/api/socket/udp_socket.h" 7 #include "chrome/browser/extensions/api/socket/udp_socket.h"
8 #include "chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher. h" 8 #include "chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher. h"
9 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/extensions/api/sockets/sockets_manifest_data.h" 10 #include "chrome/common/extensions/api/sockets/sockets_manifest_data.h"
10 #include "content/public/common/socket_permission_request.h" 11 #include "content/public/common/socket_permission_request.h"
11 #include "net/base/net_errors.h" 12 #include "net/base/net_errors.h"
12 13
13 namespace extensions { 14 namespace extensions {
14 namespace api { 15 namespace api {
15 16
16 using content::SocketPermissionRequest; 17 using content::SocketPermissionRequest;
17 18
18 const char kSocketNotFoundError[] = "Socket not found"; 19 const char kSocketNotFoundError[] = "Socket not found";
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 error_ = kPermissionError; 497 error_ = kPermissionError;
497 return; 498 return;
498 } 499 }
499 500
500 const std::vector<std::string>& groups = socket->GetJoinedGroups(); 501 const std::vector<std::string>& groups = socket->GetJoinedGroups();
501 results_ = sockets_udp::GetJoinedGroups::Results::Create(groups); 502 results_ = sockets_udp::GetJoinedGroups::Results::Create(groups);
502 } 503 }
503 504
504 } // namespace api 505 } // namespace api
505 } // namespace extensions 506 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698