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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.cc

Issue 7989001: Remove use of default request context and fix use of speech censor flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update SpeechInputPreferences when preference changes Created 9 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
Index: chrome/browser/tab_contents/render_view_context_menu.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
index 0099b90689d6c2f4c88ff0510967fa411f68f6bd..f53d6cc7adb1d80523e3ca6e20d1261b072f5170 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -57,6 +57,7 @@
#include "content/browser/download/save_package.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/renderer_host/render_widget_host_view.h"
+#include "content/browser/speech/speech_input_preferences.h"
#include "content/browser/tab_contents/navigation_details.h"
#include "content/browser/tab_contents/navigation_entry.h"
#include "content/browser/tab_contents/tab_contents.h"
@@ -1829,6 +1830,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
PrefService* prefs = profile_->GetPrefs();
const bool censor = !prefs->GetBoolean(prefs::kSpeechInputCensorResults);
prefs->SetBoolean(prefs::kSpeechInputCensorResults, censor);
+ profile_->GetSpeechInputPreferences()->set_censor_results(censor);
break;
}

Powered by Google App Engine
This is Rietveld 408576698