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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 102103005: Move c/c/e/extension_set to top-level extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years 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) 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/views/location_bar/location_bar_view.h" 5 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h" 59 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h"
60 #include "chrome/browser/ui/views/passwords/manage_passwords_icon_view.h" 60 #include "chrome/browser/ui/views/passwords/manage_passwords_icon_view.h"
61 #include "chrome/browser/ui/views/toolbar/site_chip_view.h" 61 #include "chrome/browser/ui/views/toolbar/site_chip_view.h"
62 #include "chrome/browser/ui/zoom/zoom_controller.h" 62 #include "chrome/browser/ui/zoom/zoom_controller.h"
63 #include "chrome/common/chrome_switches.h" 63 #include "chrome/common/chrome_switches.h"
64 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler. h" 64 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler. h"
65 #include "chrome/common/pref_names.h" 65 #include "chrome/common/pref_names.h"
66 #include "content/public/browser/notification_service.h" 66 #include "content/public/browser/notification_service.h"
67 #include "content/public/browser/render_widget_host_view.h" 67 #include "content/public/browser/render_widget_host_view.h"
68 #include "content/public/browser/web_contents.h" 68 #include "content/public/browser/web_contents.h"
69 #include "extensions/common/extension_set.h"
69 #include "extensions/common/feature_switch.h" 70 #include "extensions/common/feature_switch.h"
70 #include "grit/generated_resources.h" 71 #include "grit/generated_resources.h"
71 #include "grit/theme_resources.h" 72 #include "grit/theme_resources.h"
72 #include "ui/base/accessibility/accessible_view_state.h" 73 #include "ui/base/accessibility/accessible_view_state.h"
73 #include "ui/base/dragdrop/drag_drop_types.h" 74 #include "ui/base/dragdrop/drag_drop_types.h"
74 #include "ui/base/l10n/l10n_util.h" 75 #include "ui/base/l10n/l10n_util.h"
75 #include "ui/base/layout.h" 76 #include "ui/base/layout.h"
76 #include "ui/base/resource/resource_bundle.h" 77 #include "ui/base/resource/resource_bundle.h"
77 #include "ui/base/theme_provider.h" 78 #include "ui/base/theme_provider.h"
78 #include "ui/events/event.h" 79 #include "ui/events/event.h"
(...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 } 1569 }
1569 1570
1570 void LocationBarView::AccessibilitySetValue(const base::string16& new_value) { 1571 void LocationBarView::AccessibilitySetValue(const base::string16& new_value) {
1571 omnibox_view_->SetUserText(new_value, new_value, true); 1572 omnibox_view_->SetUserText(new_value, new_value, true);
1572 } 1573 }
1573 1574
1574 bool LocationBarView::IsBookmarkStarHiddenByExtension() { 1575 bool LocationBarView::IsBookmarkStarHiddenByExtension() {
1575 if (!extensions::FeatureSwitch::enable_override_bookmarks_ui()->IsEnabled()) 1576 if (!extensions::FeatureSwitch::enable_override_bookmarks_ui()->IsEnabled())
1576 return false; 1577 return false;
1577 1578
1578 const ExtensionSet* extension_set = 1579 const extensions::ExtensionSet* extension_set =
1579 extensions::ExtensionSystem::GetForBrowserContext(profile_) 1580 extensions::ExtensionSystem::GetForBrowserContext(profile_)
1580 ->extension_service()->extensions(); 1581 ->extension_service()->extensions();
1581 for (ExtensionSet::const_iterator i = extension_set->begin(); 1582 for (extensions::ExtensionSet::const_iterator i = extension_set->begin();
1582 i != extension_set->end(); ++i) { 1583 i != extension_set->end(); ++i) {
1583 const extensions::SettingsOverrides* settings_overrides = 1584 const extensions::SettingsOverrides* settings_overrides =
1584 extensions::SettingsOverrides::Get(i->get()); 1585 extensions::SettingsOverrides::Get(i->get());
1585 if (settings_overrides && 1586 if (settings_overrides &&
1586 settings_overrides->RequiresHideBookmarkButtonPermission()) 1587 settings_overrides->RequiresHideBookmarkButtonPermission())
1587 return true; 1588 return true;
1588 } 1589 }
1589 1590
1590 return false; 1591 return false;
1591 } 1592 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/sync/profile_signin_confirmation_helper.cc ('k') | chrome/browser/ui/webui/cookies_tree_model_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698