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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc

Issue 2802703004: Log creation for many dialog box types. (Closed)
Patch Set: Enums better match class names. Created 3 years, 8 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 (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/views/bookmarks/bookmark_bubble_view.h" 5 #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/metrics/user_metrics.h" 10 #include "base/metrics/user_metrics.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 BookmarkModelFactory::GetForBrowserContext(profile_) 296 BookmarkModelFactory::GetForBrowserContext(profile_)
297 ->GetMostRecentlyAddedUserNodeForURL(url)), 297 ->GetMostRecentlyAddedUserNodeForURL(url)),
298 remove_button_(nullptr), 298 remove_button_(nullptr),
299 edit_button_(nullptr), 299 edit_button_(nullptr),
300 close_button_(nullptr), 300 close_button_(nullptr),
301 title_tf_(nullptr), 301 title_tf_(nullptr),
302 parent_combobox_(nullptr), 302 parent_combobox_(nullptr),
303 ios_promo_view_(nullptr), 303 ios_promo_view_(nullptr),
304 remove_bookmark_(false), 304 remove_bookmark_(false),
305 apply_edits_(true), 305 apply_edits_(true),
306 is_showing_ios_promotion_(false) {} 306 is_showing_ios_promotion_(false) {
307 chrome::RecordDialogCreation(chrome::DialogIdentifier::BOOKMARK);
308 }
307 309
308 base::string16 BookmarkBubbleView::GetTitle() { 310 base::string16 BookmarkBubbleView::GetTitle() {
309 BookmarkModel* bookmark_model = 311 BookmarkModel* bookmark_model =
310 BookmarkModelFactory::GetForBrowserContext(profile_); 312 BookmarkModelFactory::GetForBrowserContext(profile_);
311 const BookmarkNode* node = 313 const BookmarkNode* node =
312 bookmark_model->GetMostRecentlyAddedUserNodeForURL(url_); 314 bookmark_model->GetMostRecentlyAddedUserNodeForURL(url_);
313 if (node) 315 if (node)
314 return node->GetTitle(); 316 return node->GetTitle();
315 else 317 else
316 NOTREACHED(); 318 NOTREACHED();
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 is_showing_ios_promotion_ = true; 410 is_showing_ios_promotion_ = true;
409 ios_promo_view_ = new DesktopIOSPromotionBubbleView( 411 ios_promo_view_ = new DesktopIOSPromotionBubbleView(
410 profile_, desktop_ios_promotion::PromotionEntryPoint::BOOKMARKS_BUBBLE); 412 profile_, desktop_ios_promotion::PromotionEntryPoint::BOOKMARKS_BUBBLE);
411 AddChildView(ios_promo_view_); 413 AddChildView(ios_promo_view_);
412 GetWidget()->UpdateWindowIcon(); 414 GetWidget()->UpdateWindowIcon();
413 GetWidget()->UpdateWindowTitle(); 415 GetWidget()->UpdateWindowTitle();
414 // Resize the bubble so it has the same width as the parent bubble. 416 // Resize the bubble so it has the same width as the parent bubble.
415 ios_promo_view_->UpdateBubbleHeight(); 417 ios_promo_view_->UpdateBubbleHeight();
416 } 418 }
417 #endif 419 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_dialogs.h ('k') | chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698