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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/task_manager/task_manager.cc ('k') | chrome/browser/themes/browser_theme_pack.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/task_manager_resource_providers.h" 5 #include "chrome/browser/task_manager/task_manager_resource_providers.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_version_info.h" 10 #include "base/file_version_info.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include "v8/include/v8.h" 55 #include "v8/include/v8.h"
56 56
57 #if defined(OS_MACOSX) 57 #if defined(OS_MACOSX)
58 #include "skia/ext/skia_utils_mac.h" 58 #include "skia/ext/skia_utils_mac.h"
59 #endif 59 #endif
60 #if defined(OS_WIN) 60 #if defined(OS_WIN)
61 #include "chrome/browser/app_icon_win.h" 61 #include "chrome/browser/app_icon_win.h"
62 #include "ui/gfx/icon_util.h" 62 #include "ui/gfx/icon_util.h"
63 #endif // defined(OS_WIN) 63 #endif // defined(OS_WIN)
64 64
65 using content::BrowserThread;
66
65 namespace { 67 namespace {
66 68
67 // Returns the appropriate message prefix ID for tabs and extensions, 69 // Returns the appropriate message prefix ID for tabs and extensions,
68 // reflecting whether they are apps or in incognito mode. 70 // reflecting whether they are apps or in incognito mode.
69 int GetMessagePrefixID(bool is_app, bool is_extension, 71 int GetMessagePrefixID(bool is_app, bool is_extension,
70 bool is_incognito, bool is_prerender) { 72 bool is_incognito, bool is_prerender) {
71 if (is_app) { 73 if (is_app) {
72 if (is_incognito) 74 if (is_incognito)
73 return IDS_TASK_MANAGER_APP_INCOGNITO_PREFIX; 75 return IDS_TASK_MANAGER_APP_INCOGNITO_PREFIX;
74 else 76 else
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 1401
1400 return &resource_; 1402 return &resource_;
1401 } 1403 }
1402 1404
1403 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { 1405 void TaskManagerBrowserProcessResourceProvider::StartUpdating() {
1404 task_manager_->AddResource(&resource_); 1406 task_manager_->AddResource(&resource_);
1405 } 1407 }
1406 1408
1407 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { 1409 void TaskManagerBrowserProcessResourceProvider::StopUpdating() {
1408 } 1410 }
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager.cc ('k') | chrome/browser/themes/browser_theme_pack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698