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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm

Issue 10808068: Store ChromeToMobile device list and timestamp prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add GetMobiles ownership/lifetime comment. Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
index ce77e5c4e63a00b0a4c1140f94ef3ee82dfb4299..cf91f8f326b41c27a8a150502d2cab8ee0e1a055 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
@@ -731,7 +731,7 @@ void LocationBarViewMac::UpdateChromeToMobileEnabled() {
DCHECK(ChromeToMobileService::IsChromeToMobileEnabled());
bool enabled = [field_ isEditable] && !toolbar_model_->input_in_progress() &&
- ChromeToMobileServiceFactory::GetForProfile(profile_)->HasDevices();
+ ChromeToMobileServiceFactory::GetForProfile(profile_)->HasMobiles();
chrome_to_mobile_decoration_->SetVisible(enabled);
command_updater_->UpdateCommandEnabled(IDC_CHROME_TO_MOBILE_PAGE, enabled);
}

Powered by Google App Engine
This is Rietveld 408576698