diff options
author | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-20 14:37:09 +0000 |
---|---|---|
committer | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-20 14:37:09 +0000 |
commit | d7e5525dd72ef8fdd865d2ae0c8692f69b1856bf (patch) | |
tree | ab6f17a236cb5eca36a5bd7e146357962df78074 /chrome/test/pyautolib | |
parent | b699a178d982f7de0025e492e965c64b28c78026 (diff) | |
download | chromium_src-d7e5525dd72ef8fdd865d2ae0c8692f69b1856bf.zip chromium_src-d7e5525dd72ef8fdd865d2ae0c8692f69b1856bf.tar.gz chromium_src-d7e5525dd72ef8fdd865d2ae0c8692f69b1856bf.tar.bz2 |
Close previous theme info bars when resetting to default theme
Select and close previous theme info bars when resetting to default theme via the options dialog. As a nice side effect if one tab is showing a theme info bar and the user switches to a different theme in another tab, this change closes the previous theme info bars as well.
(landing for satish@chromium.org / http://codereview.chromium.org/1622017/show)
BUG=35607
TEST=Install a theme, and with the theme info bar visible open Preferences dialog and click 'reset to default theme' and check the info bar. (full steps given in the above bug entry)
Review URL: http://codereview.chromium.org/1650016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45034 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/pyautolib')
-rw-r--r-- | chrome/test/pyautolib/pyautolib.cc | 4 | ||||
-rw-r--r-- | chrome/test/pyautolib/pyautolib.h | 2 | ||||
-rw-r--r-- | chrome/test/pyautolib/pyautolib.i | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/chrome/test/pyautolib/pyautolib.cc b/chrome/test/pyautolib/pyautolib.cc index 39a5b32..fab3832 100644 --- a/chrome/test/pyautolib/pyautolib.cc +++ b/chrome/test/pyautolib/pyautolib.cc @@ -156,9 +156,9 @@ bool PyUITestBase::OpenNewBrowserWindow(bool show) { return automation()->OpenNewBrowserWindow(Browser::TYPE_NORMAL, show); } -bool PyUITestBase::InstallExtension(const FilePath& crx_file) { +bool PyUITestBase::InstallExtension(const FilePath& crx_file, bool with_ui) { scoped_refptr<ExtensionProxy> proxy = - automation()->InstallExtension(crx_file); + automation()->InstallExtension(crx_file, with_ui); return proxy.get() != NULL; } diff --git a/chrome/test/pyautolib/pyautolib.h b/chrome/test/pyautolib/pyautolib.h index 1093fda..321cfde 100644 --- a/chrome/test/pyautolib/pyautolib.h +++ b/chrome/test/pyautolib/pyautolib.h @@ -100,7 +100,7 @@ class PyUITestBase : public UITestBase { // Installs the extension crx. Returns true only if extension was installed // and loaded successfully. Overinstalls will fail. - bool InstallExtension(const FilePath& crx_file); + bool InstallExtension(const FilePath& crx_file, bool with_ui); // Returns bookmark bar visibility state. bool GetBookmarkBarVisibility(); diff --git a/chrome/test/pyautolib/pyautolib.i b/chrome/test/pyautolib/pyautolib.i index 3fdddc4..e974319 100644 --- a/chrome/test/pyautolib/pyautolib.i +++ b/chrome/test/pyautolib/pyautolib.i @@ -312,7 +312,7 @@ class PyUITestBase { %feature("docstring", "Install an extension from the given file. Returns " "True if successfully installed and loaded.") InstallExtension; - bool InstallExtension(const FilePath& crx_file); + bool InstallExtension(const FilePath& crx_file, bool with_ui); %feature("docstring", "Get a proxy to the browser window at the given " "zero-based index.") GetBrowserWindow; |