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

Side by Side Diff: chrome/browser/ui/views/profiles/avatar_button.cc

Issue 2868293002: Rename new_avatar_button.* to avatar_button in preparation for CL 2851543002 (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/ui/views/profiles/new_avatar_button.h" 5 #include "chrome/browser/ui/views/profiles/avatar_button.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/app/vector_icons/vector_icons.h" 10 #include "chrome/app/vector_icons/vector_icons.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/profiles/profile_attributes_entry.h" 12 #include "chrome/browser/profiles/profile_attributes_entry.h"
13 #include "chrome/browser/profiles/profile_manager.h" 13 #include "chrome/browser/profiles/profile_manager.h"
14 #include "chrome/browser/profiles/profiles_state.h" 14 #include "chrome/browser/profiles/profiles_state.h"
15 #include "chrome/browser/ui/views/profiles/avatar_button_delegate.h" 15 #include "chrome/browser/ui/views/profiles/avatar_button_delegate.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 208 }
209 209
210 // If we are not using the generic button, then reset the spacing between 210 // If we are not using the generic button, then reset the spacing between
211 // the text and the possible authentication error icon. 211 // the text and the possible authentication error icon.
212 const int kDefaultImageTextSpacing = 5; 212 const int kDefaultImageTextSpacing = 5;
213 SetImageLabelSpacing(use_generic_button ? 0 : kDefaultImageTextSpacing); 213 SetImageLabelSpacing(use_generic_button ? 0 : kDefaultImageTextSpacing);
214 214
215 PreferredSizeChanged(); 215 PreferredSizeChanged();
216 delegate_->ButtonPreferredSizeChanged(); 216 delegate_->ButtonPreferredSizeChanged();
217 } 217 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/avatar_button.h ('k') | chrome/browser/ui/views/profiles/new_avatar_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698