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

Side by Side Diff: chrome/browser/task_manager/worker_resource_provider.cc

Issue 120983002: Update some uses of UTF conversions in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | Annotate | Revision Log
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 "chrome/browser/task_manager/worker_resource_provider.h" 5 #include "chrome/browser/task_manager/worker_resource_provider.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 SharedWorkerResource::SharedWorkerResource( 77 SharedWorkerResource::SharedWorkerResource(
78 const GURL& url, 78 const GURL& url,
79 const base::string16& name, 79 const base::string16& name,
80 int process_id, 80 int process_id,
81 int routing_id, 81 int routing_id,
82 base::ProcessHandle process_handle) 82 base::ProcessHandle process_handle)
83 : process_id_(process_id), 83 : process_id_(process_id),
84 routing_id_(routing_id), 84 routing_id_(routing_id),
85 handle_(process_handle) { 85 handle_(process_handle) {
86 title_ = UTF8ToUTF16(url.spec()); 86 title_ = base::UTF8ToUTF16(url.spec());
87 if (!name.empty()) 87 if (!name.empty())
88 title_ += ASCIIToUTF16(" (") + name + ASCIIToUTF16(")"); 88 title_ += base::ASCIIToUTF16(" (") + name + base::ASCIIToUTF16(")");
89 } 89 }
90 90
91 SharedWorkerResource::~SharedWorkerResource() { 91 SharedWorkerResource::~SharedWorkerResource() {
92 } 92 }
93 93
94 bool SharedWorkerResource::Matches(int process_id, 94 bool SharedWorkerResource::Matches(int process_id,
95 int routing_id) const { 95 int routing_id) const {
96 return process_id_ == process_id && routing_id_ == routing_id; 96 return process_id_ == process_id && routing_id_ == routing_id;
97 } 97 }
98 98
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 } else { 350 } else {
351 task_manager_->AddResource(resource); 351 task_manager_->AddResource(resource);
352 } 352 }
353 } 353 }
354 354
355 void WorkerResourceProvider::DeleteAllResources() { 355 void WorkerResourceProvider::DeleteAllResources() {
356 STLDeleteElements(&resources_); 356 STLDeleteElements(&resources_);
357 } 357 }
358 358
359 } // namespace task_manager 359 } // namespace task_manager
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager_util.cc ('k') | chrome/browser/translate/translate_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698