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

Side by Side Diff: chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog.cc

Issue 2899253002: chromeos: Rename ash::WmShelf to Shelf (Closed)
Patch Set: rebase Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog. h" 5 #include "chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog. h"
6 6
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/shelf/wm_shelf.h" 8 #include "ash/shelf/shelf.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/browser/lifetime/application_lifetime.h" 12 #include "chrome/browser/lifetime/application_lifetime.h"
13 #include "chrome/browser/ui/browser_dialogs.h" 13 #include "chrome/browser/ui/browser_dialogs.h"
14 #include "chrome/grit/generated_resources.h" 14 #include "chrome/grit/generated_resources.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
17 #include "ui/views/border.h" 17 #include "ui/views/border.h"
18 #include "ui/views/controls/button/checkbox.h" 18 #include "ui/views/controls/button/checkbox.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 dialog_view->InitDialog(user_email); 78 dialog_view->InitDialog(user_email);
79 views::Widget* widget = dialog_view->GetWidget(); 79 views::Widget* widget = dialog_view->GetWidget();
80 DCHECK(widget); 80 DCHECK(widget);
81 widget->Show(); 81 widget->Show();
82 82
83 // Since this is the last thing the user ever sees, we also hide all system 83 // Since this is the last thing the user ever sees, we also hide all system
84 // tray's from the screen. 84 // tray's from the screen.
85 std::vector<ash::RootWindowController*> controllers = 85 std::vector<ash::RootWindowController*> controllers =
86 ash::Shell::GetAllRootWindowControllers(); 86 ash::Shell::GetAllRootWindowControllers();
87 for (ash::RootWindowController* controller : controllers) { 87 for (ash::RootWindowController* controller : controllers) {
88 controller->wm_shelf()->SetAutoHideBehavior( 88 controller->shelf()->SetAutoHideBehavior(
89 ash::SHELF_AUTO_HIDE_ALWAYS_HIDDEN); 89 ash::SHELF_AUTO_HIDE_ALWAYS_HIDDEN);
90 } 90 }
91 } 91 }
92 92
93 bool MultiprofilesSessionAbortedView::Accept() { 93 bool MultiprofilesSessionAbortedView::Accept() {
94 chrome::AttemptUserExit(); 94 chrome::AttemptUserExit();
95 return true; 95 return true;
96 } 96 }
97 97
98 int MultiprofilesSessionAbortedView::GetDialogButtons() const { 98 int MultiprofilesSessionAbortedView::GetDialogButtons() const {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } // namespace 155 } // namespace
156 156
157 //////////////////////////////////////////////////////////////////////////////// 157 ////////////////////////////////////////////////////////////////////////////////
158 // Factory function. 158 // Factory function.
159 159
160 void ShowMultiprofilesSessionAbortedDialog(const std::string& user_email) { 160 void ShowMultiprofilesSessionAbortedDialog(const std::string& user_email) {
161 MultiprofilesSessionAbortedView::ShowDialog(user_email); 161 MultiprofilesSessionAbortedView::ShowDialog(user_email);
162 } 162 }
163 163
164 } // namespace chromeos 164 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_browsertest.cc ('k') | chrome/browser/ui/ash/app_list/app_list_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698