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

Unified Diff: chrome/browser/extensions/extension_tabs_test.cc

Issue 9428018: Create BaseWindow and ExtensionWindowWrapper for extension API access to Panels (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 10 months 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: chrome/browser/extensions/extension_tabs_test.cc
diff --git a/chrome/browser/extensions/extension_tabs_test.cc b/chrome/browser/extensions/extension_tabs_test.cc
index ed0bc6cd9ed3a0740b26defe535638b6c4186b82..c5c75ce4570a6f2aeb73b31eea519ed7e16a32e9 100644
--- a/chrome/browser/extensions/extension_tabs_test.cc
+++ b/chrome/browser/extensions/extension_tabs_test.cc
@@ -43,9 +43,11 @@ IN_PROC_BROWSER_TEST_F(ExtensionTabsTest, GetWindow) {
keys::kWindowNotFoundError));
// Basic window details.
- // Need GetRestoredBound instead of GetBounds.
- // See crbug.com/98759.
- gfx::Rect bounds = browser()->window()->GetRestoredBounds();
+ gfx::Rect bounds;
+ if (browser()->window()->IsMinimized())
+ bounds = browser()->window()->GetRestoredBounds();
+ else
+ bounds = browser()->window()->GetBounds();
scoped_ptr<base::DictionaryValue> result(ToDictionary(
RunFunctionAndReturnResult(
« no previous file with comments | « chrome/browser/extensions/extension_tabs_module.cc ('k') | chrome/browser/extensions/extension_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698