| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/bookmarks/bookmark_utils_desktop.h" | 5 #include "chrome/browser/ui/bookmarks/bookmark_utils_desktop.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 #include "extensions/browser/extension_registry.h" | 41 #include "extensions/browser/extension_registry.h" |
| 42 #include "extensions/common/extension_set.h" | 42 #include "extensions/common/extension_set.h" |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 #if defined(TOOLKIT_VIEWS) | 45 #if defined(TOOLKIT_VIEWS) |
| 46 #include "ui/gfx/color_palette.h" | 46 #include "ui/gfx/color_palette.h" |
| 47 #include "ui/gfx/paint_vector_icon.h" | 47 #include "ui/gfx/paint_vector_icon.h" |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
| 51 #include "chrome/grit/theme_resources.h" | |
| 52 #include "ui/base/material_design/material_design_controller.h" | 51 #include "ui/base/material_design/material_design_controller.h" |
| 53 #include "ui/base/resource/resource_bundle.h" | 52 #include "ui/base/resource/resource_bundle.h" |
| 54 #endif | 53 #endif |
| 55 | 54 |
| 56 using bookmarks::BookmarkModel; | 55 using bookmarks::BookmarkModel; |
| 57 using bookmarks::BookmarkNode; | 56 using bookmarks::BookmarkNode; |
| 58 | 57 |
| 59 namespace chrome { | 58 namespace chrome { |
| 60 | 59 |
| 61 size_t kNumBookmarkUrlsBeforePrompting = 15; | 60 size_t kNumBookmarkUrlsBeforePrompting = 15; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 } | 228 } |
| 230 | 229 |
| 231 bool HasBookmarkURLsAllowedInIncognitoMode( | 230 bool HasBookmarkURLsAllowedInIncognitoMode( |
| 232 const std::vector<const BookmarkNode*>& selection, | 231 const std::vector<const BookmarkNode*>& selection, |
| 233 content::BrowserContext* browser_context) { | 232 content::BrowserContext* browser_context) { |
| 234 return !GetURLsToOpen(selection, browser_context, true).empty(); | 233 return !GetURLsToOpen(selection, browser_context, true).empty(); |
| 235 } | 234 } |
| 236 #endif // !defined(OS_ANDROID) | 235 #endif // !defined(OS_ANDROID) |
| 237 | 236 |
| 238 } // namespace chrome | 237 } // namespace chrome |
| OLD | NEW |