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

Side by Side Diff: chrome/browser/bug_report_util.cc

Issue 3412033: Make feedback failure notification non sticky (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: " Created 10 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/low_battery_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/low_battery_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698