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

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

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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_chromeos. h" 5 #include "extensions/browser/api/networking_private/networking_private_chromeos. h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "chromeos/dbus/dbus_thread_manager.h" 10 #include "chromeos/dbus/dbus_thread_manager.h"
(...skipping 17 matching lines...) Expand all
28 #include "extensions/browser/api/networking_private/networking_private_api.h" 28 #include "extensions/browser/api/networking_private/networking_private_api.h"
29 #include "extensions/browser/extensions_browser_client.h" 29 #include "extensions/browser/extensions_browser_client.h"
30 30
31 using chromeos::DeviceState; 31 using chromeos::DeviceState;
32 using chromeos::NetworkHandler; 32 using chromeos::NetworkHandler;
33 using chromeos::NetworkStateHandler; 33 using chromeos::NetworkStateHandler;
34 using chromeos::NetworkTypePattern; 34 using chromeos::NetworkTypePattern;
35 using chromeos::ShillManagerClient; 35 using chromeos::ShillManagerClient;
36 using extensions::NetworkingPrivateDelegate; 36 using extensions::NetworkingPrivateDelegate;
37 37
38 namespace private_api = extensions::core_api::networking_private; 38 namespace private_api = extensions::api::networking_private;
39 39
40 namespace { 40 namespace {
41 41
42 chromeos::NetworkStateHandler* GetStateHandler() { 42 chromeos::NetworkStateHandler* GetStateHandler() {
43 return NetworkHandler::Get()->network_state_handler(); 43 return NetworkHandler::Get()->network_state_handler();
44 } 44 }
45 45
46 chromeos::ManagedNetworkConfigurationHandler* GetManagedConfigurationHandler() { 46 chromeos::ManagedNetworkConfigurationHandler* GetManagedConfigurationHandler() {
47 return NetworkHandler::Get()->managed_network_configuration_handler(); 47 return NetworkHandler::Get()->managed_network_configuration_handler();
48 } 48 }
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 426
427 return true; 427 return true;
428 } 428 }
429 429
430 bool NetworkingPrivateChromeOS::RequestScan() { 430 bool NetworkingPrivateChromeOS::RequestScan() {
431 GetStateHandler()->RequestScan(); 431 GetStateHandler()->RequestScan();
432 return true; 432 return true;
433 } 433 }
434 434
435 } // namespace extensions 435 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698