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

Side by Side Diff: chrome/browser/bookmarks/bookmark_context_menu_controller.cc

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/bookmarks/bookmark_context_menu_controller.h" 5 #include "chrome/browser/bookmarks/bookmark_context_menu_controller.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/bookmarks/bookmark_editor.h" 9 #include "chrome/browser/bookmarks/bookmark_editor.h"
10 #include "chrome/browser/bookmarks/bookmark_folder_editor_controller.h" 10 #include "chrome/browser/bookmarks/bookmark_folder_editor_controller.h"
11 #include "chrome/browser/bookmarks/bookmark_model.h" 11 #include "chrome/browser/bookmarks/bookmark_model.h"
12 #include "chrome/browser/bookmarks/bookmark_utils.h" 12 #include "chrome/browser/bookmarks/bookmark_utils.h"
13 #include "chrome/browser/browser.h" 13 #include "chrome/browser/browser.h"
14 #include "chrome/browser/browser_list.h" 14 #include "chrome/browser/browser_list.h"
15 #include "chrome/browser/metrics/user_metrics.h" 15 #include "chrome/browser/metrics/user_metrics.h"
16 #include "chrome/browser/pref_service.h" 16 #include "chrome/browser/prefs/pref_service.h"
17 #include "chrome/browser/profile.h" 17 #include "chrome/browser/profile.h"
18 #include "chrome/browser/tab_contents/page_navigator.h" 18 #include "chrome/browser/tab_contents/page_navigator.h"
19 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
20 #include "grit/generated_resources.h" 20 #include "grit/generated_resources.h"
21 21
22 namespace { 22 namespace {
23 23
24 // Returns true if the specified node is of type URL, or has a descendant 24 // Returns true if the specified node is of type URL, or has a descendant
25 // of type URL. 25 // of type URL.
26 bool NodeHasURLs(const BookmarkNode* node) { 26 bool NodeHasURLs(const BookmarkNode* node) {
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 delegate_->CloseMenu(); 299 delegate_->CloseMenu();
300 } 300 }
301 301
302 bool BookmarkContextMenuController::HasURLs() const { 302 bool BookmarkContextMenuController::HasURLs() const {
303 for (size_t i = 0; i < selection_.size(); ++i) { 303 for (size_t i = 0; i < selection_.size(); ++i) {
304 if (NodeHasURLs(selection_[i])) 304 if (NodeHasURLs(selection_[i]))
305 return true; 305 return true;
306 } 306 }
307 return false; 307 return false;
308 } 308 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698