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

Unified Diff: chrome/browser/sync/test/integration/dictionary_load_observer.cc

Issue 11445002: Sync user's custom spellcheck dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add browser tests for dictionary change notifications in settings Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/dictionary_load_observer.cc
diff --git a/chrome/browser/sync/test/integration/dictionary_load_observer.cc b/chrome/browser/sync/test/integration/dictionary_load_observer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0847a21060eff453ee83fc0faa8a7fc668e0aed9
--- /dev/null
+++ b/chrome/browser/sync/test/integration/dictionary_load_observer.cc
@@ -0,0 +1,20 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/sync/test/integration/dictionary_load_observer.h"
+
+DictionaryLoadObserver::DictionaryLoadObserver(const base::Closure& quit_task)
+ : quit_task_(quit_task) {
+}
+
+DictionaryLoadObserver::~DictionaryLoadObserver() {
+}
+
+void DictionaryLoadObserver::OnCustomDictionaryLoaded() {
+ quit_task_.Run();
+}
+
+void DictionaryLoadObserver::OnCustomDictionaryChanged(
+ const SpellcheckCustomDictionary::Change* dictionary_change) {
+}

Powered by Google App Engine
This is Rietveld 408576698