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

Unified Diff: chrome/browser/views/options/options_window_view.cc

Issue 155668: Refactoring of tabbed-pane component so it can be ported to Linux toolkit_view (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/views/options/options_window_view.cc
===================================================================
--- chrome/browser/views/options/options_window_view.cc (revision 20802)
+++ chrome/browser/views/options/options_window_view.cc (working copy)
@@ -21,7 +21,7 @@
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
-#include "views/controls/tabbed_pane.h"
+#include "views/controls/tabbed_pane/tabbed_pane.h"
#include "views/widget/root_view.h"
#include "views/window/dialog_delegate.h"
#include "views/window/window.h"
@@ -220,9 +220,7 @@
}
OptionsPageView* OptionsWindowView::GetCurrentOptionsPageView() const {
- views::RootView* contents_root_view = tabs_->GetContentsRootView();
- DCHECK(contents_root_view->GetChildViewCount() == 1);
- return static_cast<OptionsPageView*>(contents_root_view->GetChildViewAt(0));
+ return static_cast<OptionsPageView*>(tabs_->GetSelectedTab());
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « chrome/browser/views/options/languages_page_view.cc ('k') | chrome/browser/views/options/passwords_exceptions_window_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698