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

Unified Diff: chromecast/browser/android/cast_window_manager.cc

Issue 793663007: Set RemoteDebuggingServer port based on "remote-debugging-port" flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Byungchul's comment. Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromecast/browser/devtools/remote_debugging_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/android/cast_window_manager.cc
diff --git a/chromecast/browser/android/cast_window_manager.cc b/chromecast/browser/android/cast_window_manager.cc
index 01fe689b3d5f0926a02e61e1b49360ec667cc038..05950d257ffe77719887d02b5c6e59ce5167cd58 100644
--- a/chromecast/browser/android/cast_window_manager.cc
+++ b/chromecast/browser/android/cast_window_manager.cc
@@ -78,10 +78,8 @@ void StopCastWindow(JNIEnv* env, jclass clazz,
void EnableDevTools(JNIEnv* env, jclass clazz, jboolean enable) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- // The specific port value doesn't matter since Android uses Unix domain
- // sockets, only whether or not it is zero.
- CastBrowserProcess::GetInstance()->pref_service()->
- SetInteger(prefs::kRemoteDebuggingPort, enable ? 1 : 0);
+ CastBrowserProcess::GetInstance()->pref_service()->SetBoolean(
+ prefs::kEnableRemoteDebugging, enable);
}
} // namespace shell
« no previous file with comments | « no previous file | chromecast/browser/devtools/remote_debugging_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698