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

Side by Side Diff: chrome/browser/spellchecker/spellchecker_session_bridge_android.h

Issue 1310093007: Add a check for null returns from SpellChekerSessonBridge#create(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/spellchecker/spellchecker_session_bridge_android.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_SESSION_BRIDGE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_SESSION_BRIDGE_ANDROID_H_
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_SESSION_BRIDGE_ANDROID_H_ 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_SESSION_BRIDGE_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 int identifier; 47 int identifier;
48 base::string16 text; 48 base::string16 text;
49 }; 49 };
50 50
51 int render_process_id_; 51 int render_process_id_;
52 52
53 scoped_ptr<SpellingRequest> active_request_; 53 scoped_ptr<SpellingRequest> active_request_;
54 scoped_ptr<SpellingRequest> pending_request_; 54 scoped_ptr<SpellingRequest> pending_request_;
55 55
56 base::android::ScopedJavaGlobalRef<jobject> java_object_; 56 base::android::ScopedJavaGlobalRef<jobject> java_object_;
57 bool java_object_initialization_failed_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(SpellCheckerSessionBridge); 59 DISALLOW_COPY_AND_ASSIGN(SpellCheckerSessionBridge);
59 }; 60 };
60 61
61 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_SESSION_BRIDGE_ANDROID_H_ 62 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_SESSION_BRIDGE_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/spellchecker/spellchecker_session_bridge_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698