OLD | NEW |
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" |
11 #include "base/string_split.h" | |
12 #include "base/string_util.h" | 11 #include "base/string_util.h" |
13 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/string_split.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/browsing_data/cookies_tree_model.h" | 15 #include "chrome/browser/browsing_data/cookies_tree_model.h" |
16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
17 #include "net/cookies/canonical_cookie.h" | 17 #include "net/cookies/canonical_cookie.h" |
18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
19 #include "ui/base/text/bytes_formatting.h" | 19 #include "ui/base/text/bytes_formatting.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 const char kKeyId[] = "id"; | 23 const char kKeyId[] = "id"; |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 child = id_map_.Lookup(node_id); | 314 child = id_map_.Lookup(node_id); |
315 child_index = parent->GetIndexOf(child); | 315 child_index = parent->GetIndexOf(child); |
316 if (child_index == -1) | 316 if (child_index == -1) |
317 break; | 317 break; |
318 | 318 |
319 parent = child; | 319 parent = child; |
320 } | 320 } |
321 | 321 |
322 return child_index >= 0 ? child : NULL; | 322 return child_index >= 0 ? child : NULL; |
323 } | 323 } |
OLD | NEW |