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

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

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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/conflicting_module_view_win.h" 5 #include "chrome/browser/ui/views/conflicting_module_view_win.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/enumerate_modules_model_win.h" 9 #include "chrome/browser/enumerate_modules_model_win.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 EnumerateModulesModel::ACTION_BOUNDARY); 190 EnumerateModulesModel::ACTION_BOUNDARY);
191 } 191 }
192 192
193 void ConflictingModuleView::ButtonPressed(views::Button* sender, 193 void ConflictingModuleView::ButtonPressed(views::Button* sender,
194 const ui::Event& event) { 194 const ui::Event& event) {
195 if (sender == learn_more_button_) { 195 if (sender == learn_more_button_) {
196 browser_->OpenURL( 196 browser_->OpenURL(
197 content::OpenURLParams(help_center_url_, 197 content::OpenURLParams(help_center_url_,
198 content::Referrer(), 198 content::Referrer(),
199 NEW_FOREGROUND_TAB, 199 NEW_FOREGROUND_TAB,
200 content::PAGE_TRANSITION_LINK, 200 ui::PAGE_TRANSITION_LINK,
201 false)); 201 false));
202 202
203 EnumerateModulesModel* model = EnumerateModulesModel::GetInstance(); 203 EnumerateModulesModel* model = EnumerateModulesModel::GetInstance();
204 model->AcknowledgeConflictNotification(); 204 model->AcknowledgeConflictNotification();
205 DismissBubble(); 205 DismissBubble();
206 } else if (sender == not_now_button_) { 206 } else if (sender == not_now_button_) {
207 DismissBubble(); 207 DismissBubble();
208 } 208 }
209 } 209 }
210 210
(...skipping 10 matching lines...) Expand all
221 221
222 void ConflictingModuleView::Observe( 222 void ConflictingModuleView::Observe(
223 int type, 223 int type,
224 const content::NotificationSource& source, 224 const content::NotificationSource& source,
225 const content::NotificationDetails& details) { 225 const content::NotificationDetails& details) {
226 DCHECK(type == chrome::NOTIFICATION_MODULE_INCOMPATIBILITY_BADGE_CHANGE); 226 DCHECK(type == chrome::NOTIFICATION_MODULE_INCOMPATIBILITY_BADGE_CHANGE);
227 EnumerateModulesModel* model = EnumerateModulesModel::GetInstance(); 227 EnumerateModulesModel* model = EnumerateModulesModel::GetInstance();
228 if (!model->ShouldShowConflictWarning()) 228 if (!model->ShouldShowConflictWarning())
229 GetWidget()->Close(); 229 GetWidget()->Close();
230 } 230 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698