Don't write default profile during shutdown

* Add Profile::IsLoginProfile()
* Skip updating preferences in the methods that are
  called during shutdown.

I kept the behavior during the active session to be safe.

BUG=302578
[email protected]

Review URL: https://codereview.chromium.org/25351006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227147 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h
index 8f6ed52f..82946a59 100644
--- a/chrome/browser/net/predictor.h
+++ b/chrome/browser/net/predictor.h
@@ -135,7 +135,7 @@
 
   static void set_max_parallel_resolves(size_t max_parallel_resolves);
 
-  virtual void ShutdownOnUIThread(PrefService* user_prefs);
+  virtual void ShutdownOnUIThread();
 
   // ------------- End UI thread methods.
 
@@ -546,7 +546,7 @@
       PrefService* local_state,
       IOThread* io_thread,
       net::URLRequestContextGetter* getter) OVERRIDE;
-  virtual void ShutdownOnUIThread(PrefService* user_prefs) OVERRIDE;
+  virtual void ShutdownOnUIThread() OVERRIDE;
 };
 
 }  // namespace chrome_browser_net