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

Side by Side Diff: chrome/browser/sync/sessions2/tab_node_pool2.cc

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/sync/sessions2/tab_node_pool2.h" 5 #include "chrome/browser/sync/sessions2/tab_node_pool2.h"
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "sync/api/sync_change.h" 10 #include "sync/api/sync_change.h"
11 #include "sync/api/sync_data.h" 11 #include "sync/api/sync_data.h"
12 #include "sync/internal_api/public/base/model_type.h" 12 #include "sync/internal_api/public/base/model_type.h"
13 #include "sync/protocol/session_specifics.pb.h" 13 #include "sync/protocol/session_specifics.pb.h"
14 #include "sync/protocol/sync.pb.h" 14 #include "sync/protocol/sync.pb.h"
15 15
16 namespace browser_sync { 16 namespace browser_sync {
17 17
18 static const char kNoSessionsFolderError[] =
19 "Server did not create the top-level sessions node. We "
20 "might be running against an out-of-date server.";
21
22 const size_t TabNodePool2::kFreeNodesLowWatermark = 25; 18 const size_t TabNodePool2::kFreeNodesLowWatermark = 25;
23 const size_t TabNodePool2::kFreeNodesHighWatermark = 100; 19 const size_t TabNodePool2::kFreeNodesHighWatermark = 100;
24 20
25 TabNodePool2::TabNodePool2() 21 TabNodePool2::TabNodePool2()
26 : max_used_tab_node_id_(kInvalidTabNodeID) {} 22 : max_used_tab_node_id_(kInvalidTabNodeID) {}
27 23
28 // static 24 // static
29 // We start vending tab node IDs at 0. 25 // We start vending tab node IDs at 0.
30 const int TabNodePool2::kInvalidTabNodeID = -1; 26 const int TabNodePool2::kInvalidTabNodeID = -1;
31 27
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 181
186 bool TabNodePool2::Empty() const { return free_nodes_pool_.empty(); } 182 bool TabNodePool2::Empty() const { return free_nodes_pool_.empty(); }
187 183
188 bool TabNodePool2::Full() { return nodeid_tabid_map_.empty(); } 184 bool TabNodePool2::Full() { return nodeid_tabid_map_.empty(); }
189 185
190 void TabNodePool2::SetMachineTag(const std::string& machine_tag) { 186 void TabNodePool2::SetMachineTag(const std::string& machine_tag) {
191 machine_tag_ = machine_tag; 187 machine_tag_ = machine_tag;
192 } 188 }
193 189
194 } // namespace browser_sync 190 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698