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

Unified Diff: chrome/browser/chrome_to_mobile_service.cc

Issue 10702029: Move tab functions off Browser into browser_tabstrip and browser_tabrestore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/chrome_switches_browsertest.cc ('k') | chrome/browser/chromeos/boot_times_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_to_mobile_service.cc
===================================================================
--- chrome/browser/chrome_to_mobile_service.cc (revision 145001)
+++ chrome/browser/chrome_to_mobile_service.cc (working copy)
@@ -24,6 +24,7 @@
#include "chrome/browser/ui/browser_command_controller.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_list.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/cloud_print/cloud_print_helpers.h"
@@ -249,7 +250,7 @@
DCHECK(!access_token_.empty());
RequestData data;
data.mobile_id = mobile_id;
- content::WebContents* web_contents = browser->GetActiveWebContents();
+ content::WebContents* web_contents = chrome::GetActiveWebContents(browser);
data.url = web_contents->GetURL();
data.title = web_contents->GetTitle();
data.snapshot_path = snapshot;
@@ -337,9 +338,9 @@
snapshots_.insert(path);
Browser* browser = browser::FindBrowserWithID(browser_id);
- if (success && browser && browser->GetActiveWebContents()) {
+ if (success && browser && chrome::GetActiveWebContents(browser)) {
// Generate the snapshot and have the observer be called back on completion.
- browser->GetActiveWebContents()->GenerateMHTML(path,
+ chrome::GetActiveWebContents(browser)->GenerateMHTML(path,
base::Bind(&Observer::SnapshotGenerated, observer));
} else if (observer.get()) {
// Signal snapshot generation failure.
« no previous file with comments | « chrome/browser/chrome_switches_browsertest.cc ('k') | chrome/browser/chromeos/boot_times_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698