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

Side by Side Diff: chrome/browser/ui/views/network_profile_bubble_view.cc

Issue 13142003: Fix app list position in windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 7 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/network_profile_bubble_view.h" 5 #include "chrome/browser/ui/views/network_profile_bubble_view.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/network_profile_bubble.h" 10 #include "chrome/browser/ui/network_profile_bubble.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // NetworkProfileBubbleView, public: 53 // NetworkProfileBubbleView, public:
54 54
55 NetworkProfileBubbleView::NetworkProfileBubbleView( 55 NetworkProfileBubbleView::NetworkProfileBubbleView(
56 views::View* anchor, 56 views::View* anchor,
57 content::PageNavigator* navigator, 57 content::PageNavigator* navigator,
58 Profile* profile) 58 Profile* profile)
59 : BubbleDelegateView(anchor, views::BubbleBorder::TOP_RIGHT), 59 : BubbleDelegateView(anchor, views::BubbleBorder::TOP_RIGHT),
60 navigator_(navigator), 60 navigator_(navigator),
61 profile_(profile) { 61 profile_(profile) {
62 // Compensate for built-in vertical padding in the anchor view's image. 62 // Compensate for built-in vertical padding in the anchor view's image.
63 set_anchor_insets( 63 set_anchor_view_insets(
64 gfx::Insets(kAnchorVerticalInset, 0, kAnchorVerticalInset, 0)); 64 gfx::Insets(kAnchorVerticalInset, 0, kAnchorVerticalInset, 0));
65 } 65 }
66 66
67 //////////////////////////////////////////////////////////////////////////////// 67 ////////////////////////////////////////////////////////////////////////////////
68 // NetworkProfileBubbleView, private: 68 // NetworkProfileBubbleView, private:
69 69
70 NetworkProfileBubbleView::~NetworkProfileBubbleView() { 70 NetworkProfileBubbleView::~NetworkProfileBubbleView() {
71 } 71 }
72 72
73 void NetworkProfileBubbleView::Init() { 73 void NetworkProfileBubbleView::Init() {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 content::PAGE_TRANSITION_LINK, false); 131 content::PAGE_TRANSITION_LINK, false);
132 navigator_->OpenURL(params); 132 navigator_->OpenURL(params);
133 133
134 // If the user interacted with the bubble we don't reduce the number of 134 // If the user interacted with the bubble we don't reduce the number of
135 // warnings left. 135 // warnings left.
136 PrefService* prefs = profile_->GetPrefs(); 136 PrefService* prefs = profile_->GetPrefs();
137 int left_warnings = prefs->GetInteger(prefs::kNetworkProfileWarningsLeft); 137 int left_warnings = prefs->GetInteger(prefs::kNetworkProfileWarningsLeft);
138 prefs->SetInteger(prefs::kNetworkProfileWarningsLeft, ++left_warnings); 138 prefs->SetInteger(prefs::kNetworkProfileWarningsLeft, ++left_warnings);
139 GetWidget()->Close(); 139 GetWidget()->Close();
140 } 140 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_bubble_view.cc ('k') | chrome/browser/ui/views/outdated_upgrade_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698