| Index: chrome/browser/memory_details.h
|
| diff --git a/chrome/browser/memory_details.h b/chrome/browser/memory_details.h
|
| index c8820e774e9eba6e1a2a4e644cea5602824e6728..7cd017dedc98b82e7b178b460accbccae26a29f4 100644
|
| --- a/chrome/browser/memory_details.h
|
| +++ b/chrome/browser/memory_details.h
|
| @@ -112,20 +112,13 @@ struct ProcessData {
|
| // }
|
| class MemoryDetails : public base::RefCountedThreadSafe<MemoryDetails> {
|
| public:
|
| - enum CollectionMode {
|
| - // Collect metrics from Chrome and other running browsers.
|
| - FROM_ALL_BROWSERS,
|
| - // Collect metrics from Chrome processes only.
|
| - FROM_CHROME_ONLY
|
| - };
|
| -
|
| // Constructor.
|
| MemoryDetails();
|
|
|
| - // Initiate updating the current memory details (based on |mode|). These are
|
| - // fetched asynchronously because data must be collected from multiple
|
| - // threads. OnDetailsAvailable will be called when this process is complete.
|
| - void StartFetch(CollectionMode mode);
|
| + // Initiate updating the current memory details. These are fetched
|
| + // asynchronously because data must be collected from multiple threads.
|
| + // OnDetailsAvailable will be called when this process is complete.
|
| + void StartFetch();
|
|
|
| virtual void OnDetailsAvailable() = 0;
|
|
|
| @@ -155,7 +148,7 @@ class MemoryDetails : public base::RefCountedThreadSafe<MemoryDetails> {
|
| // on that thread. The data will be used by about:memory. When finished,
|
| // invokes back to the file thread to run the rest of the about:memory
|
| // functionality.
|
| - void CollectChildInfoOnIOThread(CollectionMode mode);
|
| + void CollectChildInfoOnIOThread();
|
|
|
| // Collect current process information from the OS and store it
|
| // for processing. If data has already been collected, clears old
|
| @@ -164,7 +157,6 @@ class MemoryDetails : public base::RefCountedThreadSafe<MemoryDetails> {
|
| // and is fairly expensive to run, hence it's run on the blocking pool.
|
| // The parameter holds information about processes from the IO thread.
|
| void CollectProcessData(
|
| - CollectionMode mode,
|
| const std::vector<ProcessMemoryInformation>& child_info);
|
|
|
| // Collect child process information on the UI thread. Information about
|
|
|