OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/bug_report_util.h" | 5 #include "chrome/browser/bug_report_util.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 class FeedbackNotification { | 68 class FeedbackNotification { |
69 public: | 69 public: |
70 // Previous notification cleanup is handled by scoped_ptr. | 70 // Previous notification cleanup is handled by scoped_ptr. |
71 // Note: notification will show only on one profile at a time. | 71 // Note: notification will show only on one profile at a time. |
72 void Show(Profile* profile, const string16& message, bool urgent) { | 72 void Show(Profile* profile, const string16& message, bool urgent) { |
73 notification_.reset( | 73 notification_.reset( |
74 new chromeos::SystemNotification(profile, kNotificationId, | 74 new chromeos::SystemNotification(profile, kNotificationId, |
75 IDR_STATUSBAR_FEEDBACK, | 75 IDR_STATUSBAR_FEEDBACK, |
76 l10n_util::GetStringUTF16( | 76 l10n_util::GetStringUTF16( |
77 IDS_BUGREPORT_NOTIFICATION_TITLE))); | 77 IDS_BUGREPORT_NOTIFICATION_TITLE))); |
78 notification_->Show(message, urgent); | 78 notification_->Show(message, urgent, false); |
79 } | 79 } |
80 | 80 |
81 private: | 81 private: |
82 FeedbackNotification() {} | 82 FeedbackNotification() {} |
83 friend struct DefaultSingletonTraits<FeedbackNotification>; | 83 friend struct DefaultSingletonTraits<FeedbackNotification>; |
84 | 84 |
85 scoped_ptr<chromeos::SystemNotification> notification_; | 85 scoped_ptr<chromeos::SystemNotification> notification_; |
86 DISALLOW_COPY_AND_ASSIGN(FeedbackNotification); | 86 DISALLOW_COPY_AND_ASSIGN(FeedbackNotification); |
87 }; | 87 }; |
88 #endif | 88 #endif |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 348 |
349 // static | 349 // static |
350 void BugReportUtil::ReportPhishing(TabContents* currentTab, | 350 void BugReportUtil::ReportPhishing(TabContents* currentTab, |
351 const std::string& phishing_url) { | 351 const std::string& phishing_url) { |
352 currentTab->controller().LoadURL( | 352 currentTab->controller().LoadURL( |
353 safe_browsing_util::GeneratePhishingReportUrl( | 353 safe_browsing_util::GeneratePhishingReportUrl( |
354 kReportPhishingUrl, phishing_url), | 354 kReportPhishingUrl, phishing_url), |
355 GURL(), | 355 GURL(), |
356 PageTransition::LINK); | 356 PageTransition::LINK); |
357 } | 357 } |
OLD | NEW |