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

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

Issue 10876009: Re-reland Integrate invalidation API into ChromeToMobileService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. 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 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/chrome_browser.gypi » ('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 e7d4c5f71ddb8ac4c4b9b7442bbfa354480af799..d1bdff091ad7a99c93db3c702440f3bc5e6f126d 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -295,16 +295,14 @@ void LocationBarView::Init(views::View* popup_parent_view) {
AddChildView(star_view_);
star_view_->SetVisible(true);
- // Also disable Chrome To Mobile for off-the-record and non-synced profiles,
+ // Disable Chrome To Mobile for off-the-record and non-synced profiles,
// or if the feature is disabled by a command line flag or chrome://flags.
if (!profile_->IsOffTheRecord() && profile_->IsSyncAccessible() &&
ChromeToMobileService::IsChromeToMobileEnabled()) {
chrome_to_mobile_view_ = new ChromeToMobileView(this, command_updater_);
AddChildView(chrome_to_mobile_view_);
- ChromeToMobileService* service =
- ChromeToMobileServiceFactory::GetForProfile(profile_);
- service->RequestMobileListUpdate();
- chrome_to_mobile_view_->SetVisible(service->HasMobiles());
+ chrome_to_mobile_view_->SetVisible(
+ ChromeToMobileServiceFactory::GetForProfile(profile_)->HasMobiles());
}
}
« no previous file with comments | « chrome/browser/ui/views/chrome_to_mobile_bubble_view.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698