| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/chrome_webusb_browser_client.h" | 5 #include "chrome/browser/chrome_webusb_browser_client.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ash/system/system_notifier.h" | 9 #include "ash/common/system/system_notifier.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "chrome/browser/net/referrer.h" | 13 #include "chrome/browser/net/referrer.h" |
| 14 #include "chrome/browser/profiles/profile_manager.h" | 14 #include "chrome/browser/profiles/profile_manager.h" |
| 15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" | 16 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" |
| 17 #include "chrome/grit/generated_resources.h" | 17 #include "chrome/grit/generated_resources.h" |
| 18 #include "chrome/grit/theme_resources.h" | 18 #include "chrome/grit/theme_resources.h" |
| 19 #include "content/public/common/origin_util.h" | 19 #include "content/public/common/origin_util.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 142 } |
| 143 | 143 |
| 144 void ChromeWebUsbBrowserClient::OnDeviceRemoved( | 144 void ChromeWebUsbBrowserClient::OnDeviceRemoved( |
| 145 const std::string& notification_id) { | 145 const std::string& notification_id) { |
| 146 message_center::MessageCenter* message_center = | 146 message_center::MessageCenter* message_center = |
| 147 message_center::MessageCenter::Get(); | 147 message_center::MessageCenter::Get(); |
| 148 if (message_center->FindVisibleNotificationById(notification_id)) { | 148 if (message_center->FindVisibleNotificationById(notification_id)) { |
| 149 message_center->RemoveNotification(notification_id, false /* by_user */); | 149 message_center->RemoveNotification(notification_id, false /* by_user */); |
| 150 } | 150 } |
| 151 } | 151 } |
| OLD | NEW |