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

Unified Diff: extensions/browser/api/system_network/system_network_api.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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/system_network/system_network_api.cc
diff --git a/extensions/browser/api/system_network/system_network_api.cc b/extensions/browser/api/system_network/system_network_api.cc
index 8cba5b7616c299a3f76c4baa53fcaa2cd5c0c8ba..b6b6685804bb1a2a895bf2fb0552ef446f2ece99 100644
--- a/extensions/browser/api/system_network/system_network_api.cc
+++ b/extensions/browser/api/system_network/system_network_api.cc
@@ -11,7 +11,7 @@ const char kNetworkListError[] = "Network lookup failed or unsupported";
} // namespace
namespace extensions {
-namespace core_api {
+namespace api {
SystemNetworkGetNetworkInterfacesFunction::
SystemNetworkGetNetworkInterfacesFunction() {
@@ -62,24 +62,23 @@ void SystemNetworkGetNetworkInterfacesFunction::SendResponseOnUIThread(
const net::NetworkInterfaceList& interface_list) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- std::vector<linked_ptr<core_api::system_network::NetworkInterface> >
- create_arg;
+ std::vector<linked_ptr<api::system_network::NetworkInterface>> create_arg;
create_arg.reserve(interface_list.size());
for (net::NetworkInterfaceList::const_iterator i = interface_list.begin();
i != interface_list.end();
++i) {
- linked_ptr<core_api::system_network::NetworkInterface> info =
- make_linked_ptr(new core_api::system_network::NetworkInterface);
+ linked_ptr<api::system_network::NetworkInterface> info =
+ make_linked_ptr(new api::system_network::NetworkInterface);
info->name = i->name;
info->address = net::IPAddressToString(i->address);
info->prefix_length = i->prefix_length;
create_arg.push_back(info);
}
- results_ = core_api::system_network::GetNetworkInterfaces::Results::Create(
- create_arg);
+ results_ =
+ api::system_network::GetNetworkInterfaces::Results::Create(create_arg);
SendResponse(true);
}
-} // namespace core_api
+} // namespace api
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698