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

Side by Side Diff: chrome/browser/tabs/pinned_tab_test_utils.cc

Issue 10332117: Revert 136573 - Extract StartupTabs and startup types from StartupBrowserCreator. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/tabs/pinned_tab_test_utils.h ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/tabs/pinned_tab_test_utils.h" 5 #include "chrome/browser/tabs/pinned_tab_test_utils.h"
6 6
7 typedef StartupBrowserCreator::LaunchWithProfile::Tab Tab;
8
7 namespace { 9 namespace {
8 10
9 std::string TabToString(const StartupTab& tab) { 11 std::string TabToString(const Tab& tab) {
10 return tab.url.spec() + ":" + (tab.is_app ? "app" : "") + ":" + 12 return tab.url.spec() + ":" + (tab.is_app ? "app" : "") + ":" +
11 (tab.is_pinned ? "pinned" : "") + ":" + tab.app_id; 13 (tab.is_pinned ? "pinned" : "") + ":" + tab.app_id;
12 } 14 }
13 15
14 } // namespace 16 } // namespace
15 17
16 // static 18 // static
17 std::string PinnedTabTestUtils::TabsToString( 19 std::string PinnedTabTestUtils::TabsToString(
18 const std::vector<StartupTab>& values) { 20 const std::vector<StartupBrowserCreator::LaunchWithProfile::Tab>& values) {
19 std::string result; 21 std::string result;
20 for (size_t i = 0; i < values.size(); ++i) { 22 for (size_t i = 0; i < values.size(); ++i) {
21 if (i != 0) 23 if (i != 0)
22 result += " "; 24 result += " ";
23 result += TabToString(values[i]); 25 result += TabToString(values[i]);
24 } 26 }
25 return result; 27 return result;
26 } 28 }
OLDNEW
« no previous file with comments | « chrome/browser/tabs/pinned_tab_test_utils.h ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698