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

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 505022: Convert a crash to a NOTREACHED. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/spellchecker/spellcheck.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "chrome/browser/renderer_host/browser_render_process_host.h" 8 #include "chrome/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 #endif 973 #endif
974 } 974 }
975 975
976 Send(new ViewMsg_SpellChecker_Init( 976 Send(new ViewMsg_SpellChecker_Init(
977 file, 977 file,
978 spellcheck_host->custom_words(), 978 spellcheck_host->custom_words(),
979 spellcheck_host->language(), 979 spellcheck_host->language(),
980 prefs->GetBoolean(prefs::kEnableAutoSpellCorrect))); 980 prefs->GetBoolean(prefs::kEnableAutoSpellCorrect)));
981 } else { 981 } else {
982 Send(new ViewMsg_SpellChecker_Init( 982 Send(new ViewMsg_SpellChecker_Init(
983 IPC::PlatformFileForTransit(), 983 IPC::InvalidPlatformFileForTransit(),
huanr 2009/12/18 00:01:40 What does IPC::PlatformFileForTransit() end up bei
Evan Stade 2009/12/18 00:10:07 on windows, this was 0 instead of -1. On Posix it
984 std::vector<std::string>(), 984 std::vector<std::string>(),
985 std::string(), 985 std::string(),
986 false)); 986 false));
987 } 987 }
988 } 988 }
989 989
990 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { 990 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) {
991 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); 991 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable));
992 } 992 }
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/spellchecker/spellcheck.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698