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

Side by Side Diff: chrome/browser/chromeos/power/peripheral_battery_observer.cc

Issue 2163253003: Moves ash/strings to ash/common/strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extraneous Created 4 years, 5 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/chromeos/power/peripheral_battery_observer.h" 5 #include "chrome/browser/chromeos/power/peripheral_battery_observer.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/common/strings/grit/ash_strings.h"
9 #include "ash/shell.h" 10 #include "ash/shell.h"
10 #include "ash/strings/grit/ash_strings.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/strings/string_split.h" 14 #include "base/strings/string_split.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
19 #include "chrome/browser/notifications/notification.h" 19 #include "chrome/browser/notifications/notification.h"
20 #include "chrome/browser/notifications/notification_ui_manager.h" 20 #include "chrome/browser/notifications/notification_ui_manager.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 void PeripheralBatteryObserver::CancelNotification(const std::string& address) { 231 void PeripheralBatteryObserver::CancelNotification(const std::string& address) {
232 // If last_used_profile_ is NULL then no notification has been posted yet. 232 // If last_used_profile_ is NULL then no notification has been posted yet.
233 if (notification_profile_) { 233 if (notification_profile_) {
234 g_browser_process->notification_ui_manager()->CancelById( 234 g_browser_process->notification_ui_manager()->CancelById(
235 address, NotificationUIManager::GetProfileID(notification_profile_)); 235 address, NotificationUIManager::GetProfileID(notification_profile_));
236 } 236 }
237 } 237 }
238 238
239 } // namespace chromeos 239 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/shutdown_policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698