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

Unified Diff: chrome/browser/chromeos/ui/setting_level_bubble.cc

Issue 10262002: views: Get rid of CreateViewsBubbleAboveLockScreen() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
« no previous file with comments | « chrome/browser/chromeos/status/data_promo_notification.cc ('k') | chrome/browser/ui/views/window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/ui/setting_level_bubble.cc
diff --git a/chrome/browser/chromeos/ui/setting_level_bubble.cc b/chrome/browser/chromeos/ui/setting_level_bubble.cc
index a673f47b754e06a6e63ce82746616239b0551ff4..5de49eb6ee08cf7f0fa5cd015695be5b536cb9e8 100644
--- a/chrome/browser/chromeos/ui/setting_level_bubble.cc
+++ b/chrome/browser/chromeos/ui/setting_level_bubble.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include "ash/shell.h"
+#include "ash/shell_window_ids.h"
#include "chrome/browser/chromeos/login/base_login_display_host.h"
#include "chrome/browser/chromeos/login/login_display_host.h"
#include "chrome/browser/chromeos/login/login_utils.h"
@@ -188,7 +189,9 @@ void SettingLevelBubble::OnWidgetClosing(views::Widget* widget) {
SettingLevelBubbleView* SettingLevelBubble::CreateView() {
SettingLevelBubbleDelegateView* delegate = new SettingLevelBubbleDelegateView;
- views::Widget* widget = browser::CreateViewsBubbleAboveLockScreen(delegate);
+ delegate->set_parent_window(ash::Shell::GetInstance()->GetContainer(
+ ash::internal::kShellWindowId_SettingBubbleContainer));
+ views::Widget* widget = views::BubbleDelegateView::CreateBubble(delegate);
widget->AddObserver(this);
// Hold on to the content view.
return delegate->view();
« no previous file with comments | « chrome/browser/chromeos/status/data_promo_notification.cc ('k') | chrome/browser/ui/views/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698