Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |