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

Unified Diff: content/zygote/zygote_linux.h

Issue 2825853002: Improvements to uses of base::SmallMap (Closed)
Patch Set: Code review Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/zygote/zygote_linux.h
diff --git a/content/zygote/zygote_linux.h b/content/zygote/zygote_linux.h
index 79a06eb220c7151a7fd5668b2e8fe31657720be8..74d8be7c931b7a58f3cda9d833b214227a06f8fe 100644
--- a/content/zygote/zygote_linux.h
+++ b/content/zygote/zygote_linux.h
@@ -51,14 +51,14 @@ class Zygote {
// Notes whether the zygote has sent SIGKILL to this process.
bool sent_sigkill;
};
- typedef base::SmallMap< std::map<base::ProcessHandle, ZygoteProcessInfo> >
- ZygoteProcessMap;
-
- // Retrieve a ZygoteProcessInfo from the process_info_map_.
- // Returns true and write to process_info if |pid| can be found, return
- // false otherwise.
- bool GetProcessInfo(base::ProcessHandle pid,
- ZygoteProcessInfo* process_info);
+ using ZygoteProcessMap =
+ base::small_map<std::map<base::ProcessHandle, ZygoteProcessInfo>>
+
+ // Retrieve a ZygoteProcessInfo from the process_info_map_.
+ // Returns true and write to process_info if |pid| can be found, return
+ // false otherwise.
+ bool GetProcessInfo(base::ProcessHandle pid,
+ ZygoteProcessInfo* process_info);
// Returns true if the SUID sandbox is active.
bool UsingSUIDSandbox() const;

Powered by Google App Engine
This is Rietveld 408576698