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

Side by Side Diff: chrome/browser/ui/browser_ui_prefs.cc

Issue 2819793002: Translate: do not show the context menu entry when the feature is disabled (Closed)
Patch Set: some more include path changes for ios/android Created 3 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/browser_ui_prefs.h" 5 #include "chrome/browser/ui/browser_ui_prefs.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/first_run/first_run.h" 8 #include "chrome/browser/first_run/first_run.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
11 #include "components/pref_registry/pref_registry_syncable.h" 11 #include "components/pref_registry/pref_registry_syncable.h"
12 #include "components/prefs/pref_registry_simple.h" 12 #include "components/prefs/pref_registry_simple.h"
13 #include "components/prefs/pref_service.h" 13 #include "components/prefs/pref_service.h"
14 #include "components/prefs/scoped_user_pref_update.h" 14 #include "components/prefs/scoped_user_pref_update.h"
15 #include "components/translate/core/common/translate_pref_names.h" 15 #include "components/translate/core/browser/translate_pref_names.h"
16 #include "content/public/common/webrtc_ip_handling_policy.h" 16 #include "content/public/common/webrtc_ip_handling_policy.h"
17 #include "media/media_features.h" 17 #include "media/media_features.h"
18 18
19 #if defined(OS_WIN) 19 #if defined(OS_WIN)
20 #include "base/win/windows_version.h" 20 #include "base/win/windows_version.h"
21 #endif 21 #endif
22 22
23 namespace { 23 namespace {
24 24
25 uint32_t GetHomeButtonAndHomePageIsNewTabPageFlags() { 25 uint32_t GetHomeButtonAndHomePageIsNewTabPageFlags() {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 registry->RegisterBooleanPref( 115 registry->RegisterBooleanPref(
116 prefs::kHideFullscreenToolbar, 116 prefs::kHideFullscreenToolbar,
117 false, 117 false,
118 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 118 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
119 #else 119 #else
120 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true); 120 registry->RegisterBooleanPref(prefs::kFullscreenAllowed, true);
121 #endif 121 #endif
122 } 122 }
123 123
124 } // namespace chrome 124 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698