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

Unified Diff: chrome/browser/chromeos/offline/offline_load_page.cc

Issue 10421014: Don't use BrowserList in OfflineLoadPage. Just use the system tray delegate to open internet option… (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/offline/offline_load_page.cc
===================================================================
--- chrome/browser/chromeos/offline/offline_load_page.cc (revision 138102)
+++ chrome/browser/chromeos/offline/offline_load_page.cc (working copy)
@@ -6,6 +6,7 @@
#include "ash/shell.h"
#include "ash/shell_delegate.h"
+#include "ash/system/tray/system_tray_delegate.h"
#include "base/i18n/rtl.h"
#include "base/metrics/histogram.h"
#include "base/string_piece.h"
@@ -18,8 +19,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/renderer_preferences_util.h"
#include "chrome/browser/tab_contents/tab_util.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_list.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_icon_set.h"
@@ -187,9 +186,7 @@
} else if (command == "dontproceed") {
interstitial_page_->DontProceed();
} else if (command == "open_network_settings") {
- Browser* browser = BrowserList::GetLastActive();
- DCHECK(browser);
- browser->ShowOptionsTab(chrome::kInternetOptionsSubPage);
+ ash::Shell::GetInstance()->tray_delegate()->ShowNetworkSettings();
} else if (command == "open_activate_broadband") {
ash::Shell::GetInstance()->delegate()->OpenMobileSetup();
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698