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

Side by Side Diff: chrome/test/base/testing_browser_process.cc

Issue 655063002: Use uint16 for port numbers more pervasively. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert bad change Created 6 years, 1 month 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
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | chrome/test/chromedriver/chrome_launcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/test/base/testing_browser_process.h" 5 #include "chrome/test/base/testing_browser_process.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/time/default_tick_clock.h" 9 #include "base/time/default_tick_clock.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 message_center::MessageCenter* TestingBrowserProcess::message_center() { 245 message_center::MessageCenter* TestingBrowserProcess::message_center() {
246 return message_center::MessageCenter::Get(); 246 return message_center::MessageCenter::Get();
247 } 247 }
248 248
249 IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() { 249 IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() {
250 return NULL; 250 return NULL;
251 } 251 }
252 void TestingBrowserProcess::CreateDevToolsHttpProtocolHandler( 252 void TestingBrowserProcess::CreateDevToolsHttpProtocolHandler(
253 chrome::HostDesktopType host_desktop_type, 253 chrome::HostDesktopType host_desktop_type,
254 const std::string& ip, 254 const std::string& ip,
255 int port) { 255 uint16 port) {
256 } 256 }
257 257
258 unsigned int TestingBrowserProcess::AddRefModule() { 258 unsigned int TestingBrowserProcess::AddRefModule() {
259 return ++module_ref_count_; 259 return ++module_ref_count_;
260 } 260 }
261 261
262 unsigned int TestingBrowserProcess::ReleaseModule() { 262 unsigned int TestingBrowserProcess::ReleaseModule() {
263 DCHECK_GT(module_ref_count_, 0U); 263 DCHECK_GT(module_ref_count_, 0U);
264 return --module_ref_count_; 264 return --module_ref_count_;
265 } 265 }
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 /////////////////////////////////////////////////////////////////////////////// 442 ///////////////////////////////////////////////////////////////////////////////
443 443
444 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { 444 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() {
445 TestingBrowserProcess::CreateInstance(); 445 TestingBrowserProcess::CreateInstance();
446 } 446 }
447 447
448 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { 448 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() {
449 TestingBrowserProcess::DeleteInstance(); 449 TestingBrowserProcess::DeleteInstance();
450 } 450 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | chrome/test/chromedriver/chrome_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698