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

Unified Diff: chrome/browser/chrome_browser_parts_views.cc

Issue 8598024: Now that we are doing a hard-cut-over to Aura, remove a bunch of *Views based classes that are ob... (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 | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_parts_views.cc
===================================================================
--- chrome/browser/chrome_browser_parts_views.cc (revision 110826)
+++ chrome/browser/chrome_browser_parts_views.cc (working copy)
@@ -9,7 +9,6 @@
#include "base/command_line.h"
#include "chrome/browser/ui/views/chrome_views_delegate.h"
#include "chrome/common/chrome_switches.h"
-#include "ui/views/desktop/desktop_window_view.h"
#include "views/widget/widget.h"
ChromeBrowserPartsViews::ChromeBrowserPartsViews()
@@ -28,31 +27,6 @@
}
void ChromeBrowserPartsViews::PreMainMessageLoopRun() {
-#if !defined(USE_AURA)
- views::Widget::SetPureViews(
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kUsePureViews));
- // Launch the views desktop shell window and register it as the default parent
- // for all unparented views widgets.
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- if (command_line.HasSwitch(switches::kViewsDesktop)) {
- std::string desktop_type_cmd =
- command_line.GetSwitchValueASCII(switches::kViewsDesktop);
- if (desktop_type_cmd != "disabled") {
- views::desktop::DesktopWindowView::DesktopType desktop_type;
- if (desktop_type_cmd == "netbook")
- desktop_type = views::desktop::DesktopWindowView::DESKTOP_NETBOOK;
- else if (desktop_type_cmd == "other")
- desktop_type = views::desktop::DesktopWindowView::DESKTOP_OTHER;
- else
- desktop_type = views::desktop::DesktopWindowView::DESKTOP_DEFAULT;
- views::desktop::DesktopWindowView::CreateDesktopWindow(desktop_type);
- ChromeViewsDelegate* chrome_views_delegate = static_cast
- <ChromeViewsDelegate*>(views::ViewsDelegate::views_delegate);
- chrome_views_delegate->default_parent_view =
- views::desktop::DesktopWindowView::desktop_window_view;
- }
- }
-#endif
}
bool ChromeBrowserPartsViews::MainMessageLoopRun(int* result_code) {
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698