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

Unified Diff: chrome/browser/ui/cocoa/web_intent_sheet_controller_browsertest.mm

Issue 10534093: TabContentsWrapper -> TabContents, part 37. (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/ui/cocoa/web_intent_sheet_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/web_intent_sheet_controller_browsertest.mm
diff --git a/chrome/browser/ui/cocoa/web_intent_sheet_controller_browsertest.mm b/chrome/browser/ui/cocoa/web_intent_sheet_controller_browsertest.mm
index 1fe3eed7a5375c1509948b900b60ad616332e071..50a1d58f78d7e45c1d252795d120d9f5f074313b 100644
--- a/chrome/browser/ui/cocoa/web_intent_sheet_controller_browsertest.mm
+++ b/chrome/browser/ui/cocoa/web_intent_sheet_controller_browsertest.mm
@@ -29,7 +29,7 @@ class MockIntentPickerDelegate : public WebIntentPickerDelegate {
class WebIntentSheetControllerBrowserTest : public InProcessBrowserTest {
public:
- void CreateBubble(TabContentsWrapper* wrapper);
+ void CreateBubble(TabContents* tab_contents);
void CreatePicker();
WebIntentPickerSheetController* controller_; // Weak, owns self.
@@ -40,8 +40,8 @@ class WebIntentSheetControllerBrowserTest : public InProcessBrowserTest {
};
void WebIntentSheetControllerBrowserTest::CreateBubble(
- TabContentsWrapper* wrapper) {
- picker_.reset(new WebIntentPickerCocoa(wrapper, &delegate_, &model_));
+ TabContents* tab_contents) {
+ picker_.reset(new WebIntentPickerCocoa(tab_contents, &delegate_, &model_));
controller_ =
[[WebIntentPickerSheetController alloc] initWithPicker:picker_.get()];
@@ -58,7 +58,7 @@ void WebIntentSheetControllerBrowserTest::CreatePicker() {
}
IN_PROC_BROWSER_TEST_F(WebIntentSheetControllerBrowserTest, CloseWillClose) {
- CreateBubble(browser()->GetSelectedTabContentsWrapper());
+ CreateBubble(browser()->GetActiveTabContents());
EXPECT_CALL(delegate_, OnPickerClosed()).Times(0);
EXPECT_CALL(delegate_, OnClosing());
@@ -69,7 +69,7 @@ IN_PROC_BROWSER_TEST_F(WebIntentSheetControllerBrowserTest, CloseWillClose) {
IN_PROC_BROWSER_TEST_F(WebIntentSheetControllerBrowserTest,
DontCancelAfterServiceInvokation) {
- CreateBubble(browser()->GetSelectedTabContentsWrapper());
+ CreateBubble(browser()->GetActiveTabContents());
GURL url;
model_.AddInstalledService(string16(), url,
« no previous file with comments | « chrome/browser/ui/cocoa/web_intent_sheet_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698