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

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 11493003: Remove the protector service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix implicit ExtensionSystem -> TemplateURLService dependency Created 8 years 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
« no previous file with comments | « chrome/test/functional/protector.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto.py
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index c7295330ff67fd279bcc91ddd0544f416652a5c5..31a6e52c0bce09a70f4ee8f00620ca3b171799ab 100755
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -2130,52 +2130,6 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
'action': 'default'}
self._GetResultFromJSONRequest(cmd_dict, windex=windex)
- def _EnsureProtectorCheck(self):
- """Ensure that Protector check for changed settings has been performed in
- the current browser session.
-
- No-op if Protector is disabled.
- """
- # Ensure that check for default search engine change has been performed.
- self._GetResultFromJSONRequest({'command': 'LoadSearchEngineInfo'})
-
- def GetProtectorState(self, window_index=0):
- """Returns current Protector state.
-
- This will trigger Protector's check for changed settings if it hasn't been
- performed yet.
-
- Args:
- window_index: The window index, default is 0.
-
- Returns:
- A dictionary.
- Example:
- { u'enabled': True,
- u'showing_change': False }
- """
- self._EnsureProtectorCheck()
- cmd_dict = {'command': 'GetProtectorState'}
- return self._GetResultFromJSONRequest(cmd_dict, windex=window_index)
-
- def ApplyProtectorChange(self):
- """Applies the change shown by Protector and closes the bubble.
-
- No-op if Protector is not showing any change.
- """
- cmd_dict = {'command': 'PerformProtectorAction',
- 'action': 'apply_change'}
- self._GetResultFromJSONRequest(cmd_dict)
-
- def DiscardProtectorChange(self):
- """Discards the change shown by Protector and closes the bubble.
-
- No-op if Protector is not showing any change.
- """
- cmd_dict = {'command': 'PerformProtectorAction',
- 'action': 'discard_change'}
- self._GetResultFromJSONRequest(cmd_dict)
-
def GetLocalStatePrefsInfo(self):
"""Return info about preferences.
« no previous file with comments | « chrome/test/functional/protector.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698