// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/test/chromedriver/chrome/device_metrics.h"

DeviceMetrics::DeviceMetrics(int width, int height, double device_scale_factor)
  : width(width),
    height(height),
    device_scale_factor(device_scale_factor),
    mobile(true),
    fit_window(false),
    text_autosizing(true),
    font_scale_factor(1) {}

DeviceMetrics::~DeviceMetrics() {}

// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/test/chromedriver/chrome/device_metrics.h"

DeviceMetrics::DeviceMetrics(int width, int height, double device_scale_factor)
  : width(width),
    height(height),
    device_scale_factor(device_scale_factor),
    mobile(false),
    fit_window(false),
    text_autosizing(true),
    font_scale_factor(1) {}

DeviceMetrics::~DeviceMetrics() {}

--- 
+++ 
@@ -8,7 +8,7 @@
   : width(width),
     height(height),
     device_scale_factor(device_scale_factor),
-    mobile(false),
+    mobile(true),
     fit_window(false),
     text_autosizing(true),
     font_scale_factor(1) {}
[chromedriver] Set mobile=true when calling setDeviceMetricsOverride

BUG=chromedriver:944
TBR=stgao@chromium.org

Review URL: https://codereview.chromium.org/668783002

Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#300390}
