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

Unified Diff: chrome/browser/ui/views/network_profile_bubble.h

Issue 10388239: Make NetworkProfileBubble not use BrowserList::GetLastActive() as much. Instead pass it a profile a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/network_profile_bubble.h
===================================================================
--- chrome/browser/ui/views/network_profile_bubble.h (revision 138102)
+++ chrome/browser/ui/views/network_profile_bubble.h (working copy)
@@ -15,7 +15,12 @@
class Browser;
class FilePath;
class PrefService;
+class Profile;
+namespace content {
+class PageNavigator;
+}
+
// This class will try to detect if the profile is on a network share and if
// this is the case notify the user with an info bubble.
class NetworkProfileBubble : public views::BubbleDelegateView,
@@ -32,10 +37,12 @@
static bool ShouldCheckNetworkProfile(PrefService* prefs);
// Shows the notification bubble using the provided |browser|.
- static void ShowNotification(const Browser* browser);
+ static void ShowNotification(Browser* browser);
private:
- explicit NetworkProfileBubble(views::View* anchor);
+ NetworkProfileBubble(views::View* anchor,
+ content::PageNavigator* navigator,
+ Profile* profile);
virtual ~NetworkProfileBubble();
// views::BubbleDelegateView overrides:
@@ -58,6 +65,10 @@
// This flag is not thread-safe and should only be accessed on the UI thread!
static bool notification_shown_;
+ // Used for loading pages.
+ content::PageNavigator* navigator_;
+ Profile* profile_;
+
DISALLOW_COPY_AND_ASSIGN(NetworkProfileBubble);
};

Powered by Google App Engine
This is Rietveld 408576698