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

Side by Side Diff: blimp/client/feature/mock_navigation_feature.cc

Issue 2058263002: Tied up BlimpNavigationController to NavigationFeature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blimp_core
Patch Set: Addressed code review comments Created 4 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "blimp/client/feature/mock_navigation_feature.h"
6
7 namespace blimp {
8 namespace client {
9
10 const int kDummyTabId = 0;
11
12 MockNavigationFeature::MockNavigationFeature() {}
13
14 MockNavigationFeature::~MockNavigationFeature() {}
15
16 void MockNavigationFeature::NavigateToUrlText(int tab_id,
17 const std::string& url_text) {
18 NavigationFeatureDelegate* delegate = FindDelegate(kDummyTabId);
19 delegate->OnUrlChanged(kDummyTabId, GURL(url_text));
David Trainor- moved to gerrit 2016/07/25 15:57:32 Why do we need kDummyTabId if we're passing tab_id
shaktisahu 2016/07/26 01:25:27 Done.
20 }
21
22 } // namespace client
23 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698