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

Side by Side Diff: ash/system/chromeos/tray_display.cc

Issue 1223153003: Move JoinString to the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: windows Created 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/system/chromeos/tray_display.h" 5 #include "ash/system/chromeos/tray_display.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/content/display/screen_orientation_controller_chromeos.h" 9 #include "ash/content/display/screen_orientation_controller_chromeos.h"
10 #include "ash/display/display_controller.h" 10 #include "ash/display/display_controller.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 lines.push_back(GetDisplayInfoLine(internal_id)); 100 lines.push_back(GetDisplayInfoLine(internal_id));
101 } 101 }
102 102
103 for (size_t i = 0; i < display_manager->GetNumDisplays(); ++i) { 103 for (size_t i = 0; i < display_manager->GetNumDisplays(); ++i) {
104 int64 id = display_manager->GetDisplayAt(i).id(); 104 int64 id = display_manager->GetDisplayAt(i).id();
105 if (id == internal_id) 105 if (id == internal_id)
106 continue; 106 continue;
107 lines.push_back(GetDisplayInfoLine(id)); 107 lines.push_back(GetDisplayInfoLine(id));
108 } 108 }
109 109
110 return JoinString(lines, '\n'); 110 return base::JoinString(lines, base::ASCIIToUTF16("\n"));
111 } 111 }
112 112
113 void OpenSettings() { 113 void OpenSettings() {
114 // switch is intentionally introduced without default, to cause an error when 114 // switch is intentionally introduced without default, to cause an error when
115 // a new type of login status is introduced. 115 // a new type of login status is introduced.
116 switch (Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus()) { 116 switch (Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus()) {
117 case user::LOGGED_IN_NONE: 117 case user::LOGGED_IN_NONE:
118 case user::LOGGED_IN_LOCKED: 118 case user::LOGGED_IN_LOCKED:
119 return; 119 return;
120 120
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 bool TrayDisplay::GetAccessibleStateForTesting(ui::AXViewState* state) { 446 bool TrayDisplay::GetAccessibleStateForTesting(ui::AXViewState* state) {
447 views::View* view = default_; 447 views::View* view = default_;
448 if (view) { 448 if (view) {
449 view->GetAccessibleState(state); 449 view->GetAccessibleState(state);
450 return true; 450 return true;
451 } 451 }
452 return false; 452 return false;
453 } 453 }
454 454
455 } // namespace ash 455 } // namespace ash
OLDNEW
« no previous file with comments | « android_webview/native/aw_web_contents_delegate.cc ('k') | ash/system/chromeos/tray_display_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698