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

Side by Side Diff: chrome/browser/ui/webui/settings_utils_linux.cc

Issue 2824363002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/ui (Closed)
Patch Set: Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/ui/webui/settings_utils.h" 5 #include "chrome/browser/ui/webui/settings_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 break; 119 break;
120 120
121 case base::nix::DESKTOP_ENVIRONMENT_XFCE: 121 case base::nix::DESKTOP_ENVIRONMENT_XFCE:
122 case base::nix::DESKTOP_ENVIRONMENT_OTHER: 122 case base::nix::DESKTOP_ENVIRONMENT_OTHER:
123 break; 123 break;
124 } 124 }
125 125
126 if (launched) 126 if (launched)
127 return; 127 return;
128 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 128 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
129 base::Bind(&ShowLinuxProxyConfigUrl, render_process_id, render_view_id)); 129 base::BindOnce(&ShowLinuxProxyConfigUrl,
130 render_process_id, render_view_id));
130 } 131 }
131 132
132 } // namespace 133 } // namespace
133 134
134 namespace settings_utils { 135 namespace settings_utils {
135 136
136 void ShowNetworkProxySettings(content::WebContents* web_contents) { 137 void ShowNetworkProxySettings(content::WebContents* web_contents) {
137 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, 138 BrowserThread::PostTask(
138 base::Bind(&DetectAndStartProxyConfigUtil, 139 BrowserThread::FILE, FROM_HERE,
139 web_contents->GetRenderProcessHost()->GetID(), 140 base::BindOnce(&DetectAndStartProxyConfigUtil,
140 web_contents->GetRenderViewHost()->GetRoutingID())); 141 web_contents->GetRenderProcessHost()->GetID(),
142 web_contents->GetRenderViewHost()->GetRoutingID()));
141 } 143 }
142 144
143 } // namespace settings_utils 145 } // namespace settings_utils
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/certificates_handler.cc ('k') | chrome/browser/ui/webui/signin/inline_login_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698