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

Unified Diff: chrome/browser/chromeos/status/clock_menu_button_browsertest.cc

Issue 8500005: Reverting this as it breaks (at least) the Windows Aura build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « no previous file | chrome/browser/chromeos/status/status_area_view_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/clock_menu_button_browsertest.cc
===================================================================
--- chrome/browser/chromeos/status/clock_menu_button_browsertest.cc (revision 110804)
+++ chrome/browser/chromeos/status/clock_menu_button_browsertest.cc (working copy)
@@ -17,10 +17,6 @@
#include "unicode/calendar.h"
#include "unicode/timezone.h"
-#if defined(USE_AURA)
-#include "chrome/browser/ui/views/aura/chrome_shell_delegate.h"
-#endif
-
namespace chromeos {
class ClockMenuButtonTest : public InProcessBrowserTest {
@@ -31,20 +27,15 @@
// to use stub, so reset it here.
CrosLibrary::Get()->GetTestApi()->ResetUseStubImpl();
}
- const ClockMenuButton* GetClockMenuButton() {
- const views::View* parent = NULL;
-#if defined(USE_AURA)
- parent = ChromeShellDelegate::instance()->GetStatusArea();
-#else
- parent = static_cast<const BrowserView*>(browser()->window());
-#endif
- return static_cast<const ClockMenuButton*>(parent->GetViewByID(
+ ClockMenuButton* GetClockMenuButton() {
+ BrowserView* view = static_cast<BrowserView*>(browser()->window());
+ return static_cast<ClockMenuButton*>(view->GetViewByID(
VIEW_ID_STATUS_BUTTON_CLOCK));
}
};
IN_PROC_BROWSER_TEST_F(ClockMenuButtonTest, TimezoneTest) {
- const ClockMenuButton* clock = GetClockMenuButton();
+ ClockMenuButton* clock = GetClockMenuButton();
ASSERT_TRUE(clock != NULL);
// Update timezone and make sure clock text changes.
« no previous file with comments | « no previous file | chrome/browser/chromeos/status/status_area_view_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698