OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chrome_browser_field_trials.h" | 5 #include "chrome/browser/chrome_browser_field_trials.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
14 #include "base/sys_string_conversions.h" | 14 #include "base/sys_string_conversions.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "chrome/browser/auto_launch_trial.h" | 16 #include "chrome/browser/auto_launch_trial.h" |
17 #include "chrome/browser/autocomplete/autocomplete_field_trial.h" | 17 #include "chrome/browser/autocomplete/autocomplete_field_trial.h" |
18 #include "chrome/browser/extensions/default_apps_trial.h" | 18 #include "chrome/browser/extensions/default_apps_trial.h" |
19 #include "chrome/browser/google/google_util.h" | 19 #include "chrome/browser/google/google_util.h" |
20 #include "chrome/browser/gpu_util.h" | 20 #include "chrome/browser/gpu_util.h" |
21 #include "chrome/browser/net/predictor.h" | 21 #include "chrome/browser/net/predictor.h" |
22 #include "chrome/browser/prerender/prerender_field_trial.h" | 22 #include "chrome/browser/prerender/prerender_field_trial.h" |
23 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
24 #include "chrome/common/chrome_version_info.h" | 24 #include "chrome/common/chrome_version_info.h" |
25 #include "chrome/common/metrics/variations_util.h" | 25 #include "chrome/common/metrics/variations/variations_util.h" |
26 #include "net/http/http_network_layer.h" | 26 #include "net/http/http_network_layer.h" |
27 #include "net/http/http_stream_factory.h" | 27 #include "net/http/http_stream_factory.h" |
28 #include "net/socket/client_socket_pool_base.h" | 28 #include "net/socket/client_socket_pool_base.h" |
29 #include "net/socket/client_socket_pool_manager.h" | 29 #include "net/socket/client_socket_pool_manager.h" |
30 #include "net/spdy/spdy_session.h" | 30 #include "net/spdy/spdy_session.h" |
31 #include "net/spdy/spdy_session_pool.h" | 31 #include "net/spdy/spdy_session_pool.h" |
32 #include "ui/base/layout.h" | 32 #include "ui/base/layout.h" |
33 | 33 |
34 #if defined(OS_WIN) | 34 #if defined(OS_WIN) |
35 #include "ui/base/win/dpi.h" // For DisableNewTabFieldTrialIfNecesssary. | 35 #include "ui/base/win/dpi.h" // For DisableNewTabFieldTrialIfNecesssary. |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 if (trial) { | 575 if (trial) { |
576 bool using_hidpi_assets = false; | 576 bool using_hidpi_assets = false; |
577 #if defined(ENABLE_HIDPI) && defined(OS_WIN) | 577 #if defined(ENABLE_HIDPI) && defined(OS_WIN) |
578 // Mirrors logic in resource_bundle_win.cc. | 578 // Mirrors logic in resource_bundle_win.cc. |
579 using_hidpi_assets = ui::GetDPIScale() > 1.5; | 579 using_hidpi_assets = ui::GetDPIScale() > 1.5; |
580 #endif | 580 #endif |
581 if (ui::GetDisplayLayout() != ui::LAYOUT_DESKTOP || using_hidpi_assets) | 581 if (ui::GetDisplayLayout() != ui::LAYOUT_DESKTOP || using_hidpi_assets) |
582 trial->Disable(); | 582 trial->Disable(); |
583 } | 583 } |
584 } | 584 } |
OLD | NEW |