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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 10968003: Add rendering support to the TestShell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed nits, rebased. Created 8 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
« no previous file with comments | « chrome/browser/android/tab_base_android_impl.cc ('k') | chrome/chrome_android.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index cebf14eda25977b3b5118b6ebced9391cd3c979e..150db0ec6b4cd6bd6db179eec45849950e608684 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -851,10 +851,12 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
if (process) {
Profile* profile = Profile::FromBrowserContext(
process->GetBrowserContext());
- extensions::ProcessMap* process_map =
- profile->GetExtensionService()->process_map();
- if (process_map && process_map->Contains(process->GetID()))
- command_line->AppendSwitch(switches::kExtensionProcess);
+ if (profile->GetExtensionService()) {
+ extensions::ProcessMap* process_map =
+ profile->GetExtensionService()->process_map();
+ if (process_map && process_map->Contains(process->GetID()))
+ command_line->AppendSwitch(switches::kExtensionProcess);
+ }
PrefService* prefs = profile->GetPrefs();
// Currently this pref is only registered if applied via a policy.
« no previous file with comments | « chrome/browser/android/tab_base_android_impl.cc ('k') | chrome/chrome_android.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698