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

Unified Diff: extensions/browser/api/networking_private/networking_private_event_router_nonchromeos.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/networking_private/networking_private_event_router_nonchromeos.cc
diff --git a/extensions/browser/api/networking_private/networking_private_event_router_nonchromeos.cc b/extensions/browser/api/networking_private/networking_private_event_router_nonchromeos.cc
index 252c6a37613cdf1810fc440310caac39439605d4..3f59935a3859a2a9efd3fdd2519d1c693804238a 100644
--- a/extensions/browser/api/networking_private/networking_private_event_router_nonchromeos.cc
+++ b/extensions/browser/api/networking_private/networking_private_event_router_nonchromeos.cc
@@ -60,9 +60,9 @@ NetworkingPrivateEventRouterImpl::NetworkingPrivateEventRouterImpl(
if (!event_router)
return;
event_router->RegisterObserver(
- this, core_api::networking_private::OnNetworksChanged::kEventName);
+ this, api::networking_private::OnNetworksChanged::kEventName);
event_router->RegisterObserver(
- this, core_api::networking_private::OnNetworkListChanged::kEventName);
+ this, api::networking_private::OnNetworkListChanged::kEventName);
StartOrStopListeningForNetworkChanges();
}
@@ -107,9 +107,9 @@ void NetworkingPrivateEventRouterImpl::StartOrStopListeningForNetworkChanges() {
bool should_listen =
event_router->HasEventListener(
- core_api::networking_private::OnNetworksChanged::kEventName) ||
+ api::networking_private::OnNetworksChanged::kEventName) ||
event_router->HasEventListener(
- core_api::networking_private::OnNetworkListChanged::kEventName);
+ api::networking_private::OnNetworkListChanged::kEventName);
if (should_listen && !listening_) {
NetworkingPrivateDelegate* delegate =
@@ -135,11 +135,10 @@ void NetworkingPrivateEventRouterImpl::OnNetworksChangedEvent(
if (!event_router)
return;
scoped_ptr<base::ListValue> args(
- core_api::networking_private::OnNetworksChanged::Create(network_guids));
- scoped_ptr<Event> netchanged_event(
- new Event(events::NETWORKING_PRIVATE_ON_NETWORKS_CHANGED,
- core_api::networking_private::OnNetworksChanged::kEventName,
- args.Pass()));
+ api::networking_private::OnNetworksChanged::Create(network_guids));
+ scoped_ptr<Event> netchanged_event(new Event(
+ events::NETWORKING_PRIVATE_ON_NETWORKS_CHANGED,
+ api::networking_private::OnNetworksChanged::kEventName, args.Pass()));
event_router->BroadcastEvent(netchanged_event.Pass());
}
@@ -149,12 +148,10 @@ void NetworkingPrivateEventRouterImpl::OnNetworkListChangedEvent(
if (!event_router)
return;
scoped_ptr<base::ListValue> args(
- core_api::networking_private::OnNetworkListChanged::Create(
- network_guids));
- scoped_ptr<Event> netlistchanged_event(
- new Event(events::NETWORKING_PRIVATE_ON_NETWORK_LIST_CHANGED,
- core_api::networking_private::OnNetworkListChanged::kEventName,
- args.Pass()));
+ api::networking_private::OnNetworkListChanged::Create(network_guids));
+ scoped_ptr<Event> netlistchanged_event(new Event(
+ events::NETWORKING_PRIVATE_ON_NETWORK_LIST_CHANGED,
+ api::networking_private::OnNetworkListChanged::kEventName, args.Pass()));
event_router->BroadcastEvent(netlistchanged_event.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698