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

Unified Diff: ash/common/system/chromeos/network/vpn_list_view.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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: ash/common/system/chromeos/network/vpn_list_view.cc
diff --git a/ash/common/system/chromeos/network/vpn_list_view.cc b/ash/common/system/chromeos/network/vpn_list_view.cc
index 0b553b01390756c709fbf79e738c0cecfeb0656f..2f1941c956cf83f39036bf60995559dba0c1c94a 100644
--- a/ash/common/system/chromeos/network/vpn_list_view.cc
+++ b/ash/common/system/chromeos/network/vpn_list_view.cc
@@ -123,8 +123,7 @@ class VPNListNetworkEntry : public VPNListEntryBase,
VPNListEntryBase::VPNListEntryBase(VPNListView* parent)
: HoverHighlightView(parent) {
- SetBorder(
- views::Border::CreateEmptyBorder(0, kTrayPopupPaddingHorizontal, 0, 0));
+ SetBorder(views::CreateEmptyBorder(0, kTrayPopupPaddingHorizontal, 0, 0));
}
VPNListProviderEntry::VPNListProviderEntry(VPNListView* parent,
@@ -132,7 +131,7 @@ VPNListProviderEntry::VPNListProviderEntry(VPNListView* parent,
: VPNListEntryBase(parent) {
views::Label* const label =
AddLabel(base::UTF8ToUTF16(name), gfx::ALIGN_LEFT, false /* highlight */);
- label->SetBorder(views::Border::CreateEmptyBorder(5, 0, 5, 0));
+ label->SetBorder(views::CreateEmptyBorder(5, 0, 5, 0));
}
VPNListNetworkEntry::VPNListNetworkEntry(VPNListView* parent,
@@ -226,12 +225,11 @@ void VPNListNetworkEntry::UpdateFromNetworkState(
disconnect_button_ = new DisconnectButton(this);
}
AddChildView(disconnect_button_);
- SetBorder(views::Border::CreateEmptyBorder(
- 0, kTrayPopupPaddingHorizontal, 0,
- UseMd() ? kTrayPopupButtonEndMargin : 3));
- } else {
SetBorder(
- views::Border::CreateEmptyBorder(0, kTrayPopupPaddingHorizontal, 0, 0));
+ views::CreateEmptyBorder(0, kTrayPopupPaddingHorizontal, 0,
+ UseMd() ? kTrayPopupButtonEndMargin : 3));
+ } else {
+ SetBorder(views::CreateEmptyBorder(0, kTrayPopupPaddingHorizontal, 0, 0));
}
// The icon and the disconnect button are always set to their preferred size.

Powered by Google App Engine
This is Rietveld 408576698