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/extensions/api/bookmark_manager_private/bookmark_manage
r_private_api.h" | 5 #include "chrome/browser/extensions/api/bookmark_manager_private/bookmark_manage
r_private_api.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/memory/linked_ptr.h" | |
16 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
17 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
19 #include "base/values.h" | 18 #include "base/values.h" |
20 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 19 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
21 #include "chrome/browser/bookmarks/bookmark_stats.h" | 20 #include "chrome/browser/bookmarks/bookmark_stats.h" |
22 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
23 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_constants.h" | 22 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_constants.h" |
24 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.h" | 23 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.h" |
25 #include "chrome/browser/extensions/extension_web_ui.h" | 24 #include "chrome/browser/extensions/extension_web_ui.h" |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 | 858 |
860 RedoInfo::Results::Result result; | 859 RedoInfo::Results::Result result; |
861 result.enabled = undo_manager->redo_count() > 0; | 860 result.enabled = undo_manager->redo_count() > 0; |
862 result.label = base::UTF16ToUTF8(undo_manager->GetRedoLabel()); | 861 result.label = base::UTF16ToUTF8(undo_manager->GetRedoLabel()); |
863 | 862 |
864 results_ = RedoInfo::Results::Create(result); | 863 results_ = RedoInfo::Results::Create(result); |
865 return true; | 864 return true; |
866 } | 865 } |
867 | 866 |
868 } // namespace extensions | 867 } // namespace extensions |
OLD | NEW |