| Index: chrome/test/pyautolib/pyauto.py
|
| diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
|
| index ff7523289d9f0ea45c60558247dedae565fcb035..007fd38390acc00f285cdd1de70d965c41635db2 100755
|
| --- a/chrome/test/pyautolib/pyauto.py
|
| +++ b/chrome/test/pyautolib/pyauto.py
|
| @@ -3331,12 +3331,10 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
|
| """Return a list of info about the sites in the NTP most visited section.
|
| SAMPLE:
|
| [{ u'title': u'Google',
|
| - u'url': u'http://www.google.com',
|
| - u'is_pinned': False},
|
| + u'url': u'http://www.google.com'},
|
| {
|
| u'title': u'Yahoo',
|
| - u'url': u'http://www.yahoo.com',
|
| - u'is_pinned': True}]
|
| + u'url': u'http://www.yahoo.com'}]
|
| """
|
| return self._GetNTPInfo()['most_visited']
|
|
|
| @@ -3358,8 +3356,6 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
|
| 0 1 2 3
|
| 4 5 6 7
|
|
|
| - When a thumbnail is moved, it is automatically pinned.
|
| -
|
| Args:
|
| thumbnail: a thumbnail dict received from |GetNTPThumbnails|
|
| new_index: the index to be moved to in the Most Visited sites section
|
| @@ -3391,38 +3387,6 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
|
| }
|
| self._GetResultFromJSONRequest(cmd_dict)
|
|
|
| - def PinNTPThumbnail(self, thumbnail):
|
| - """Pins the NTP thumbnail.
|
| -
|
| - Args:
|
| - thumbnail: a thumbnail dict received from |GetNTPThumbnails|
|
| - """
|
| - self._CheckNTPThumbnailShown(thumbnail)
|
| - self.MoveNTPThumbnail(thumbnail, self.GetNTPThumbnailIndex(thumbnail))
|
| -
|
| - def UnpinNTPThumbnail(self, thumbnail):
|
| - """Unpins the NTP thumbnail and returns true on success.
|
| -
|
| - Args:
|
| - thumbnail: a thumbnail dict received from |GetNTPThumbnails|
|
| - """
|
| - self._CheckNTPThumbnailShown(thumbnail)
|
| - cmd_dict = {
|
| - 'command': 'UnpinNTPMostVisitedThumbnail',
|
| - 'url': thumbnail['url']
|
| - }
|
| - self._GetResultFromJSONRequest(cmd_dict)
|
| -
|
| - def IsNTPThumbnailPinned(self, thumbnail):
|
| - """Returns whether the NTP thumbnail is pinned.
|
| -
|
| - Args:
|
| - thumbnail: a thumbnail dict received from |GetNTPThumbnails|
|
| - """
|
| - self._CheckNTPThumbnailShown(thumbnail)
|
| - index = self.GetNTPThumbnailIndex(thumbnail)
|
| - return self.GetNTPThumbnails()[index]['is_pinned']
|
| -
|
| def RestoreAllNTPThumbnails(self):
|
| """Restores all the removed NTP thumbnails.
|
| Note:
|
|
|