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/ui/views/new_task_manager_view.h" | 5 #include "chrome/browser/ui/views/new_task_manager_view.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/i18n/number_formatting.h" | 9 #include "base/i18n/number_formatting.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 return n_a_string_; | 176 return n_a_string_; |
177 | 177 |
178 if (nacl_port == nacl::kGdbDebugStubPortUnknown) | 178 if (nacl_port == nacl::kGdbDebugStubPortUnknown) |
179 return unknown_string_; | 179 return unknown_string_; |
180 | 180 |
181 return base::IntToString16(nacl_port); | 181 return base::IntToString16(nacl_port); |
182 } | 182 } |
183 | 183 |
184 base::string16 GetWindowsHandlesText(int64 current, int64 peak) { | 184 base::string16 GetWindowsHandlesText(int64 current, int64 peak) { |
185 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_HANDLES_CELL_TEXT, | 185 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_HANDLES_CELL_TEXT, |
186 base::IntToString16(current), | 186 base::Int64ToString16(current), |
187 base::IntToString16(peak)); | 187 base::Int64ToString16(peak)); |
188 } | 188 } |
189 | 189 |
190 base::string16 GetNetworkUsageText(int64 network_usage) { | 190 base::string16 GetNetworkUsageText(int64 network_usage) { |
191 if (network_usage == -1) | 191 if (network_usage == -1) |
192 return n_a_string_; | 192 return n_a_string_; |
193 | 193 |
194 if (network_usage == 0) | 194 if (network_usage == 0) |
195 return zero_string_; | 195 return zero_string_; |
196 | 196 |
197 base::string16 net_byte = ui::FormatSpeed(network_usage); | 197 base::string16 net_byte = ui::FormatSpeed(network_usage); |
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1236 } | 1236 } |
1237 | 1237 |
1238 void NewTaskManagerView::ToggleColumnVisibility(int column_id) { | 1238 void NewTaskManagerView::ToggleColumnVisibility(int column_id) { |
1239 bool new_visibility = !tab_table_->IsColumnVisible(column_id); | 1239 bool new_visibility = !tab_table_->IsColumnVisible(column_id); |
1240 tab_table_->SetColumnVisibility(column_id, new_visibility); | 1240 tab_table_->SetColumnVisibility(column_id, new_visibility); |
1241 columns_settings_->SetBoolean(GetColumnIdAsString(column_id), new_visibility); | 1241 columns_settings_->SetBoolean(GetColumnIdAsString(column_id), new_visibility); |
1242 table_model_->UpdateRefreshTypes(tab_table_, column_id, new_visibility); | 1242 table_model_->UpdateRefreshTypes(tab_table_, column_id, new_visibility); |
1243 } | 1243 } |
1244 | 1244 |
1245 } // namespace task_management | 1245 } // namespace task_management |
1246 | |
OLD | NEW |