| Index: content/browser/geolocation/geolocation_dispatcher_host.cc
|
| ===================================================================
|
| --- content/browser/geolocation/geolocation_dispatcher_host.cc (revision 0)
|
| +++ content/browser/geolocation/geolocation_dispatcher_host.cc (working copy)
|
| @@ -2,21 +2,19 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/geolocation/geolocation_dispatcher_host.h"
|
| +#include "content/browser/geolocation/geolocation_dispatcher_host.h"
|
|
|
| #include <map>
|
| #include <set>
|
| #include <utility>
|
|
|
| #include "chrome/common/geoposition.h"
|
| -#include "chrome/browser/geolocation/geolocation_permission_context.h"
|
| -#include "chrome/browser/geolocation/geolocation_provider.h"
|
| -#include "chrome/browser/renderer_host/render_message_filter.h"
|
| -#include "chrome/browser/renderer_host/render_process_host.h"
|
| -#include "chrome/browser/renderer_host/render_view_host.h"
|
| -#include "chrome/browser/renderer_host/render_view_host_notification_task.h"
|
| #include "chrome/common/render_messages.h"
|
| -#include "ipc/ipc_message.h"
|
| +#include "content/browser/geolocation/geolocation_permission_context.h"
|
| +#include "content/browser/geolocation/geolocation_provider.h"
|
| +#include "content/browser/renderer_host/render_message_filter.h"
|
| +#include "content/browser/renderer_host/render_process_host.h"
|
| +#include "content/browser/renderer_host/render_view_host.h"
|
|
|
| namespace {
|
| class GeolocationDispatcherHostImpl : public GeolocationDispatcherHost,
|
| @@ -105,10 +103,7 @@
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| for (std::set<int>::iterator it = geolocation_renderer_ids_.begin();
|
| it != geolocation_renderer_ids_.end(); ++it) {
|
| - IPC::Message* message =
|
| - new ViewMsg_Geolocation_PositionUpdated(*it, geoposition);
|
| - CallRenderViewHost(render_process_id_, *it,
|
| - &RenderViewHost::Send, message);
|
| + Send(new ViewMsg_Geolocation_PositionUpdated(*it, geoposition));
|
| }
|
| }
|
|
|
|
|