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

Side by Side Diff: chrome/browser/ui/webui/cookies_tree_model_util.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/cookies_tree_model_util.h" 5 #include "chrome/browser/ui/webui/cookies_tree_model_util.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/i18n/time_formatting.h" 9 #include "base/i18n/time_formatting.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const char kKeyCreated[] = "created"; 47 const char kKeyCreated[] = "created";
48 const char kKeyExpires[] = "expires"; 48 const char kKeyExpires[] = "expires";
49 const char kKeyModified[] = "modified"; 49 const char kKeyModified[] = "modified";
50 50
51 const char kKeyPersistent[] = "persistent"; 51 const char kKeyPersistent[] = "persistent";
52 const char kKeyTemporary[] = "temporary"; 52 const char kKeyTemporary[] = "temporary";
53 53
54 const char kKeyTotalUsage[] = "totalUsage"; 54 const char kKeyTotalUsage[] = "totalUsage";
55 const char kKeyTemporaryUsage[] = "temporaryUsage"; 55 const char kKeyTemporaryUsage[] = "temporaryUsage";
56 const char kKeyPersistentUsage[] = "persistentUsage"; 56 const char kKeyPersistentUsage[] = "persistentUsage";
57 const char kKeyPersistentQuota[] = "persistentQuota";
58 57
59 const char kKeyCertType[] = "certType"; 58 const char kKeyCertType[] = "certType";
60 59
61 const int64 kNegligibleUsage = 1024; // 1KiB 60 const int64 kNegligibleUsage = 1024; // 1KiB
62 61
63 std::string ClientCertTypeToString(net::SSLClientCertType type) { 62 std::string ClientCertTypeToString(net::SSLClientCertType type) {
64 switch (type) { 63 switch (type) {
65 case net::CLIENT_CERT_RSA_SIGN: 64 case net::CLIENT_CERT_RSA_SIGN:
66 return l10n_util::GetStringUTF8(IDS_CLIENT_CERT_RSA_SIGN); 65 return l10n_util::GetStringUTF8(IDS_CLIENT_CERT_RSA_SIGN);
67 case net::CLIENT_CERT_DSS_SIGN: 66 case net::CLIENT_CERT_DSS_SIGN:
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 child = id_map_.Lookup(node_id); 316 child = id_map_.Lookup(node_id);
318 child_index = parent->GetIndexOf(child); 317 child_index = parent->GetIndexOf(child);
319 if (child_index == -1) 318 if (child_index == -1)
320 break; 319 break;
321 320
322 parent = child; 321 parent = child;
323 } 322 }
324 323
325 return child_index >= 0 ? child : NULL; 324 return child_index >= 0 ? child : NULL;
326 } 325 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698