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

Side by Side Diff: chrome/browser/devtools/browser_list_tabcontents_provider.cc

Issue 640353003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 6 years, 2 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/devtools/browser_list_tabcontents_provider.h" 5 #include "chrome/browser/devtools/browser_list_tabcontents_provider.h"
6 6
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "chrome/browser/history/top_sites.h" 9 #include "chrome/browser/history/top_sites.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 BrowserListTabContentsProvider::CreateSocketForTethering( 78 BrowserListTabContentsProvider::CreateSocketForTethering(
79 net::StreamListenSocket::Delegate* delegate, 79 net::StreamListenSocket::Delegate* delegate,
80 std::string* name) { 80 std::string* name) {
81 if (!g_tethering_enabled.Get()) 81 if (!g_tethering_enabled.Get())
82 return scoped_ptr<net::StreamListenSocket>(); 82 return scoped_ptr<net::StreamListenSocket>();
83 83
84 if (last_tethering_port_ == kMaxTetheringPort) 84 if (last_tethering_port_ == kMaxTetheringPort)
85 last_tethering_port_ = kMinTetheringPort; 85 last_tethering_port_ = kMinTetheringPort;
86 int port = ++last_tethering_port_; 86 int port = ++last_tethering_port_;
87 *name = base::IntToString(port); 87 *name = base::IntToString(port);
88 return net::TCPListenSocket::CreateAndListen("127.0.0.1", port, delegate) 88 return net::TCPListenSocket::CreateAndListen("127.0.0.1", port, delegate);
89 .PassAs<net::StreamListenSocket>();
90 } 89 }
OLDNEW
« no previous file with comments | « chrome/browser/crash_recovery_browsertest.cc ('k') | chrome/browser/dom_distiller/dom_distiller_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698