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

Side by Side Diff: chrome/browser/ui/views/outdated_upgrade_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/outdated_upgrade_bubble_view.h" 5 #include "chrome/browser/ui/views/outdated_upgrade_bubble_view.h"
6 6
7 #include "base/metrics/histogram_macros.h" 7 #include "base/metrics/histogram_macros.h"
8 #include "base/metrics/user_metrics.h" 8 #include "base/metrics/user_metrics.h"
9 #include "base/task_scheduler/post_task.h" 9 #include "base/task_scheduler/post_task.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/ui/browser_dialogs.h"
12 #include "chrome/browser/ui/layout_constants.h" 13 #include "chrome/browser/ui/layout_constants.h"
13 #include "chrome/browser/ui/views/elevation_icon_setter.h" 14 #include "chrome/browser/ui/views/elevation_icon_setter.h"
14 #include "chrome/browser/upgrade_detector.h" 15 #include "chrome/browser/upgrade_detector.h"
15 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
16 #include "chrome/grit/chromium_strings.h" 17 #include "chrome/grit/chromium_strings.h"
17 #include "chrome/grit/generated_resources.h" 18 #include "chrome/grit/generated_resources.h"
18 #include "components/prefs/pref_service.h" 19 #include "components/prefs/pref_service.h"
19 #include "content/public/browser/page_navigator.h" 20 #include "content/public/browser/page_navigator.h"
20 #include "ui/base/l10n/l10n_util.h" 21 #include "ui/base/l10n/l10n_util.h"
21 #include "ui/views/controls/label.h" 22 #include "ui/views/controls/label.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 OutdatedUpgradeBubbleView::OutdatedUpgradeBubbleView( 180 OutdatedUpgradeBubbleView::OutdatedUpgradeBubbleView(
180 views::View* anchor_view, 181 views::View* anchor_view,
181 content::PageNavigator* navigator, 182 content::PageNavigator* navigator,
182 bool auto_update_enabled) 183 bool auto_update_enabled)
183 : BubbleDialogDelegateView(anchor_view, views::BubbleBorder::TOP_RIGHT), 184 : BubbleDialogDelegateView(anchor_view, views::BubbleBorder::TOP_RIGHT),
184 auto_update_enabled_(auto_update_enabled), 185 auto_update_enabled_(auto_update_enabled),
185 navigator_(navigator) { 186 navigator_(navigator) {
186 // Compensate for built-in vertical padding in the anchor view's image. 187 // Compensate for built-in vertical padding in the anchor view's image.
187 set_anchor_view_insets(gfx::Insets( 188 set_anchor_view_insets(gfx::Insets(
188 GetLayoutConstant(LOCATION_BAR_BUBBLE_ANCHOR_VERTICAL_INSET), 0)); 189 GetLayoutConstant(LOCATION_BAR_BUBBLE_ANCHOR_VERTICAL_INSET), 0));
190 chrome::RecordDialogCreation(chrome::DialogIdentifier::OUTDATED_UPGRADE);
189 } 191 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/network_profile_bubble_view.cc ('k') | chrome/browser/ui/views/session_crashed_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698