[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / tools / perf / page_sets / blank_page_with_extension_profile.py
blobb4c5b594e760b45e31f6880b494027dc7ab0cda0
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 from page_sets import extension_profile_shared_state
6 from telemetry.page import page as page_module
7 from telemetry import story
10 class BlankPageWithExtensionProfile(page_module.Page):
11 """A single blank page loaded with a profile with many extensions."""
13 def __init__(self, url, page_set):
14 super(BlankPageWithExtensionProfile, self).__init__(
15 url=url, page_set=page_set,
16 shared_page_state_class=extension_profile_shared_state.
17 ExtensionProfileSharedState)
20 class BlankPageSetWithExtensionProfile(story.StorySet):
21 """PageSet tied to BlankPageWithExtensionProfile."""
23 def __init__(self):
24 super(BlankPageSetWithExtensionProfile, self).__init__()
25 self.AddStory(BlankPageWithExtensionProfile(
26 'file://blank_page/blank_page.html', self))