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

Side by Side Diff: chrome/browser/chromeos/ui/screen_capture_notification_ui_chromeos.cc

Issue 105193002: Replace string16 with base::string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/ui/screen_capture_notification_ui_chromeos.h" 5 #include "chrome/browser/chromeos/ui/screen_capture_notification_ui_chromeos.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/system/tray/system_tray_notifier.h" 8 #include "ash/system/tray/system_tray_notifier.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "ui/base/l10n/l10n_util.h" 10 #include "ui/base/l10n/l10n_util.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 ScreenCaptureNotificationUIChromeOS::ScreenCaptureNotificationUIChromeOS( 14 ScreenCaptureNotificationUIChromeOS::ScreenCaptureNotificationUIChromeOS(
15 const string16& text) 15 const base::string16& text)
16 : text_(text) { 16 : text_(text) {
17 } 17 }
18 18
19 ScreenCaptureNotificationUIChromeOS::~ScreenCaptureNotificationUIChromeOS() { 19 ScreenCaptureNotificationUIChromeOS::~ScreenCaptureNotificationUIChromeOS() {
20 // MediaStreamCaptureIndicator will delete ScreenCaptureNotificationUI object 20 // MediaStreamCaptureIndicator will delete ScreenCaptureNotificationUI object
21 // after it stops screen capture. 21 // after it stops screen capture.
22 ash::Shell::GetInstance()->system_tray_notifier()->NotifyScreenCaptureStop(); 22 ash::Shell::GetInstance()->system_tray_notifier()->NotifyScreenCaptureStop();
23 } 23 }
24 24
25 void ScreenCaptureNotificationUIChromeOS::OnStarted( 25 void ScreenCaptureNotificationUIChromeOS::OnStarted(
26 const base::Closure& stop_callback) { 26 const base::Closure& stop_callback) {
27 ash::Shell::GetInstance()->system_tray_notifier()->NotifyScreenCaptureStart( 27 ash::Shell::GetInstance()->system_tray_notifier()->NotifyScreenCaptureStart(
28 stop_callback, text_); 28 stop_callback, text_);
29 } 29 }
30 30
31 } // namespace chromeos 31 } // namespace chromeos
32 32
33 // static 33 // static
34 scoped_ptr<ScreenCaptureNotificationUI> ScreenCaptureNotificationUI::Create( 34 scoped_ptr<ScreenCaptureNotificationUI> ScreenCaptureNotificationUI::Create(
35 const string16& text) { 35 const base::string16& text) {
36 return scoped_ptr<ScreenCaptureNotificationUI>( 36 return scoped_ptr<ScreenCaptureNotificationUI>(
37 new chromeos::ScreenCaptureNotificationUIChromeOS(text)); 37 new chromeos::ScreenCaptureNotificationUIChromeOS(text));
38 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698