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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

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
« no previous file with comments | « chrome/browser/ui/views/chrome_to_mobile_bubble_view.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index 424f5c5e50ca62297b50c809cf333cb25e92f917..c42c556757fdb7069e9d9e534ad7b7ecee650da0 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -293,7 +293,7 @@ void LocationBarView::Init(views::View* popup_parent_view) {
ChromeToMobileService* service =
ChromeToMobileServiceFactory::GetForProfile(profile_);
service->RequestMobileListUpdate();
- chrome_to_mobile_view_->SetVisible(service->HasDevices());
+ chrome_to_mobile_view_->SetVisible(service->HasMobiles());
}
}
@@ -407,7 +407,7 @@ void LocationBarView::Update(const WebContents* tab_for_state_restoring) {
star_view_->SetVisible(star_enabled);
bool enabled = chrome_to_mobile_view_ && !model_->input_in_progress() &&
- ChromeToMobileServiceFactory::GetForProfile(profile_)->HasDevices();
+ ChromeToMobileServiceFactory::GetForProfile(profile_)->HasMobiles();
command_updater_->UpdateCommandEnabled(IDC_CHROME_TO_MOBILE_PAGE, enabled);
// Don't Update in app launcher mode so that the location entry does not show
« no previous file with comments | « chrome/browser/ui/views/chrome_to_mobile_bubble_view.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698