| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/gtk/avatar_menu_bubble_gtk.h" | 5 #include "chrome/browser/ui/gtk/avatar_menu_bubble_gtk.h" |
| 6 | 6 |
| 7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/profiles/avatar_menu_model.h" | 9 #include "chrome/browser/profiles/avatar_menu_model.h" |
| 10 #include "chrome/browser/profiles/profile_info_cache.h" | 10 #include "chrome/browser/profiles/profile_info_cache.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 GtkWidget* link_align = gtk_alignment_new(0, 0, 0, 0); | 157 GtkWidget* link_align = gtk_alignment_new(0, 0, 0, 0); |
| 158 gtk_alignment_set_padding(GTK_ALIGNMENT(link_align), | 158 gtk_alignment_set_padding(GTK_ALIGNMENT(link_align), |
| 159 0, 0, kNewProfileLinkLeftPadding, 0); | 159 0, 0, kNewProfileLinkLeftPadding, 0); |
| 160 gtk_container_add(GTK_CONTAINER(link_align), new_profile_link_); | 160 gtk_container_add(GTK_CONTAINER(link_align), new_profile_link_); |
| 161 | 161 |
| 162 gtk_box_pack_start(GTK_BOX(contents_), link_align, FALSE, FALSE, 0); | 162 gtk_box_pack_start(GTK_BOX(contents_), link_align, FALSE, FALSE, 0); |
| 163 } | 163 } |
| 164 | 164 |
| 165 void AvatarMenuBubbleGtk::CloseBubble() { | 165 void AvatarMenuBubbleGtk::CloseBubble() { |
| 166 bubble_->Close(); | 166 if (bubble_) { |
| 167 bubble_ = NULL; | 167 bubble_->Close(); |
| 168 bubble_ = NULL; |
| 169 } |
| 168 } | 170 } |
| OLD | NEW |