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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm

Issue 10834078: Cleanup: Constify more ExtensionService methods, and IWYU. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 4 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 | Annotate | Revision Log
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 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" 5 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h"
8 #include "base/message_loop.h" 9 #include "base/message_loop.h"
9 #include "base/stl_util.h" 10 #include "base/stl_util.h"
10 #include "base/string_util.h" 11 #include "base/string_util.h"
11 #include "base/sys_string_conversions.h" 12 #include "base/sys_string_conversions.h"
12 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
13 #include "chrome/app/chrome_command_ids.h" 14 #include "chrome/app/chrome_command_ids.h"
14 #include "chrome/browser/alternate_nav_url_fetcher.h" 15 #include "chrome/browser/alternate_nav_url_fetcher.h"
15 #import "chrome/browser/app_controller_mac.h" 16 #import "chrome/browser/app_controller_mac.h"
16 #include "chrome/browser/chrome_to_mobile_service.h" 17 #include "chrome/browser/chrome_to_mobile_service.h"
17 #include "chrome/browser/chrome_to_mobile_service_factory.h" 18 #include "chrome/browser/chrome_to_mobile_service_factory.h"
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 void LocationBarViewMac::UpdateChromeToMobileEnabled() { 732 void LocationBarViewMac::UpdateChromeToMobileEnabled() {
732 if (!chrome_to_mobile_decoration_.get()) 733 if (!chrome_to_mobile_decoration_.get())
733 return; 734 return;
734 735
735 DCHECK(ChromeToMobileService::IsChromeToMobileEnabled()); 736 DCHECK(ChromeToMobileService::IsChromeToMobileEnabled());
736 bool enabled = [field_ isEditable] && !toolbar_model_->input_in_progress() && 737 bool enabled = [field_ isEditable] && !toolbar_model_->input_in_progress() &&
737 ChromeToMobileServiceFactory::GetForProfile(profile_)->HasMobiles(); 738 ChromeToMobileServiceFactory::GetForProfile(profile_)->HasMobiles();
738 chrome_to_mobile_decoration_->SetVisible(enabled); 739 chrome_to_mobile_decoration_->SetVisible(enabled);
739 command_updater_->UpdateCommandEnabled(IDC_CHROME_TO_MOBILE_PAGE, enabled); 740 command_updater_->UpdateCommandEnabled(IDC_CHROME_TO_MOBILE_PAGE, enabled);
740 } 741 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698