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

Unified Diff: chrome/browser/chromeos/status/data_promo_notification.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 | « no previous file | chrome/browser/chromeos/ui/setting_level_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/data_promo_notification.cc
diff --git a/chrome/browser/chromeos/status/data_promo_notification.cc b/chrome/browser/chromeos/status/data_promo_notification.cc
index 553336c2f571fea70150ec3a4eb0476b51d33ec8..5182451db34c881e857ba5551e28a8c7d8ef13a9 100644
--- a/chrome/browser/chromeos/status/data_promo_notification.cc
+++ b/chrome/browser/chromeos/status/data_promo_notification.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/chromeos/status/data_promo_notification.h"
+#include "ash/shell.h"
+#include "ash/shell_window_ids.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
@@ -206,7 +208,10 @@ void DataPromoNotification::ShowOptionalMobileDataPromoNotification(
message,
links);
mobile_data_bubble_->set_link_listener(listener);
- browser::CreateViewsBubbleAboveLockScreen(mobile_data_bubble_);
+ mobile_data_bubble_->set_parent_window(
+ ash::Shell::GetInstance()->GetContainer(
+ ash::internal::kShellWindowId_SettingBubbleContainer));
+ views::BubbleDelegateView::CreateBubble(mobile_data_bubble_);
mobile_data_bubble_->Show();
mobile_data_bubble_->GetWidget()->AddObserver(this);
« no previous file with comments | « no previous file | chrome/browser/chromeos/ui/setting_level_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698