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

Unified Diff: components/nacl/browser/nacl_process_host.h

Issue 554233002: Refactoring the WeakPtrFactory usage, Member variables should appear before the WeakPtrFactory, to … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: components/nacl/browser/nacl_process_host.h
diff --git a/components/nacl/browser/nacl_process_host.h b/components/nacl/browser/nacl_process_host.h
index 31e0d602ec0ced19627286fff805ea72a95d53eb..3b358b52f89b7651c1d77bef6583d94df381cab5 100644
--- a/components/nacl/browser/nacl_process_host.h
+++ b/components/nacl/browser/nacl_process_host.h
@@ -223,8 +223,6 @@ class NaClProcessHost : public content::BrowserChildProcessHostDelegate {
// Socket pairs for the NaCl process and renderer.
scoped_ptr<NaClInternal> internal_;
- base::WeakPtrFactory<NaClProcessHost> weak_factory_;
-
scoped_ptr<content::BrowserChildProcessHost> process_;
bool uses_irt_;
@@ -253,6 +251,8 @@ class NaClProcessHost : public content::BrowserChildProcessHostDelegate {
// reporting crash information.
base::SharedMemory crash_info_shmem_;
+ base::WeakPtrFactory<NaClProcessHost> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(NaClProcessHost);
};

Powered by Google App Engine
This is Rietveld 408576698