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

Side by Side Diff: extensions/browser/api/networking_private/networking_private_linux.cc

Issue 2754903002: Prevent networkingPrivate.forgetNetwork from removing shared configs (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/api/networking_private/networking_private_linux.h" 5 #include "extensions/browser/api/networking_private/networking_private_linux.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/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 void NetworkingPrivateLinux::CreateNetwork( 260 void NetworkingPrivateLinux::CreateNetwork(
261 bool shared, 261 bool shared,
262 std::unique_ptr<base::DictionaryValue> properties, 262 std::unique_ptr<base::DictionaryValue> properties,
263 const StringCallback& success_callback, 263 const StringCallback& success_callback,
264 const FailureCallback& failure_callback) { 264 const FailureCallback& failure_callback) {
265 ReportNotSupported("CreateNetwork", failure_callback); 265 ReportNotSupported("CreateNetwork", failure_callback);
266 } 266 }
267 267
268 void NetworkingPrivateLinux::ForgetNetwork( 268 void NetworkingPrivateLinux::ForgetNetwork(
269 const std::string& guid, 269 const std::string& guid,
270 bool allow_forget_shared_config,
270 const VoidCallback& success_callback, 271 const VoidCallback& success_callback,
271 const FailureCallback& failure_callback) { 272 const FailureCallback& failure_callback) {
272 // TODO(zentaro): Implement for Linux. 273 // TODO(zentaro): Implement for Linux.
273 ReportNotSupported("ForgetNetwork", failure_callback); 274 ReportNotSupported("ForgetNetwork", failure_callback);
274 } 275 }
275 276
276 void NetworkingPrivateLinux::GetNetworks( 277 void NetworkingPrivateLinux::GetNetworks(
277 const std::string& network_type, 278 const std::string& network_type,
278 bool configured_only, 279 bool configured_only,
279 bool visible_only, 280 bool visible_only,
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 base::Unretained(this), base::Passed(&guid_list))); 1202 base::Unretained(this), base::Passed(&guid_list)));
1202 } 1203 }
1203 1204
1204 void NetworkingPrivateLinux::OnNetworksChangedEventTask( 1205 void NetworkingPrivateLinux::OnNetworksChangedEventTask(
1205 std::unique_ptr<GuidList> guid_list) { 1206 std::unique_ptr<GuidList> guid_list) {
1206 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 1207 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
1207 OnNetworksChangedEventOnUIThread(*guid_list); 1208 OnNetworksChangedEventOnUIThread(*guid_list);
1208 } 1209 }
1209 1210
1210 } // namespace extensions 1211 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698