Commit 937111b6 authored by Daniel Bratell's avatar Daniel Bratell Committed by Commit Bot

Avoid global using namespace statements in modules/sensor

global using namespace statements cause issues with jumbo builds so this
patch moves and removes two such occurances in modules/sensor.

An alternative is to import explicit symbols rather than the full
namespaces.

R=mikhail.pozdnyakov@intel.com

Bug: 
Change-Id: Iafc85a856b02b381dae6244b2fc3acedc37e30db
Reviewed-on: https://chromium-review.googlesource.com/565296Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: bratell at Opera <bratell@opera.com>
Cr-Commit-Position: refs/heads/master@{#485277}
parent d7d6b1b3
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
#include "modules/sensor/SensorProviderProxy.h" #include "modules/sensor/SensorProviderProxy.h"
#include "services/device/public/interfaces/sensor.mojom-blink.h" #include "services/device/public/interfaces/sensor.mojom-blink.h"
using namespace device::mojom::blink;
namespace blink { namespace blink {
namespace { namespace {
...@@ -28,7 +26,7 @@ constexpr double kMinWaitingInterval = ...@@ -28,7 +26,7 @@ constexpr double kMinWaitingInterval =
Sensor::Sensor(ExecutionContext* execution_context, Sensor::Sensor(ExecutionContext* execution_context,
const SensorOptions& sensor_options, const SensorOptions& sensor_options,
ExceptionState& exception_state, ExceptionState& exception_state,
SensorType type) device::mojom::blink::SensorType type)
: ContextLifecycleObserver(execution_context), : ContextLifecycleObserver(execution_context),
sensor_options_(sensor_options), sensor_options_(sensor_options),
type_(type), type_(type),
......
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
#include "platform/mojo/MojoHelper.h" #include "platform/mojo/MojoHelper.h"
#include "public/platform/Platform.h" #include "public/platform/Platform.h"
using namespace device::mojom::blink;
namespace blink { namespace blink {
using namespace device::mojom::blink;
SensorProxy::SensorProxy(SensorType sensor_type, SensorProxy::SensorProxy(SensorType sensor_type,
SensorProviderProxy* provider, SensorProviderProxy* provider,
Page* page) Page* page)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment