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

Unified Diff: tools/telemetry/telemetry/core/backends/chrome/chrome_browser_options.py

Issue 739623005: [Telemetry] Resolve errors due to new pylint checker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready to land Created 6 years, 1 month 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: tools/telemetry/telemetry/core/backends/chrome/chrome_browser_options.py
diff --git a/tools/telemetry/telemetry/core/backends/chrome/chrome_browser_options.py b/tools/telemetry/telemetry/core/backends/chrome/chrome_browser_options.py
deleted file mode 100644
index 0ee7c2f0ef680dfb6a315e2a385a349df589704a..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/core/backends/chrome/chrome_browser_options.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 2013 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.
-
-from telemetry.core import browser_options
-from telemetry.core import platform
-
-
-def CreateChromeBrowserOptions(br_options):
- browser_type = br_options.browser_type
-
- if (platform.GetHostPlatform().GetOSName() == 'chromeos' or
- (browser_type and browser_type.startswith('cros'))):
- return CrosBrowserOptions(br_options)
-
- return br_options
-
-
-class ChromeBrowserOptions(browser_options.BrowserOptions):
- """Chrome-specific browser options."""
-
- def __init__(self, br_options):
- super(ChromeBrowserOptions, self).__init__()
- # Copy to self.
- self.__dict__.update(br_options.__dict__)
-
-
-class CrosBrowserOptions(ChromeBrowserOptions):
- """ChromeOS-specific browser options."""
-
- def __init__(self, br_options):
- super(CrosBrowserOptions, self).__init__(br_options)
- # Create a browser with oobe property.
- self.create_browser_with_oobe = False
- # Clear enterprise policy before logging in.
- self.clear_enterprise_policy = True
- # Disable GAIA/enterprise services.
- self.disable_gaia_services = True
- # Disable default apps.
- self.disable_default_apps = True
-
- self.auto_login = True
- self.gaia_login = False
- self.username = 'test@test.test'
- self.password = ''

Powered by Google App Engine
This is Rietveld 408576698