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

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

Issue 9235004: [Garbled Text][Infobar] Adding infobar to suggest turning on encoding detection. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 11 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.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 2469 matching lines...) Expand 10 before | Expand all | Expand 10 after
2480 PrefService::UNSYNCABLE_PREF); 2480 PrefService::UNSYNCABLE_PREF);
2481 prefs->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, 2481 prefs->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop,
2482 true, 2482 true,
2483 PrefService::UNSYNCABLE_PREF); 2483 PrefService::UNSYNCABLE_PREF);
2484 prefs->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, 2484 prefs->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu,
2485 true, 2485 true,
2486 PrefService::UNSYNCABLE_PREF); 2486 PrefService::UNSYNCABLE_PREF);
2487 prefs->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, 2487 prefs->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar,
2488 true, 2488 true,
2489 PrefService::UNSYNCABLE_PREF); 2489 PrefService::UNSYNCABLE_PREF);
2490 prefs->RegisterBooleanPref(prefs::kEnableAutoGarbledTextFix,
2491 true,
2492 PrefService::UNSYNCABLE_PREF);
2490 prefs->RegisterBooleanPref(prefs::kEnableTranslate, 2493 prefs->RegisterBooleanPref(prefs::kEnableTranslate,
2491 true, 2494 true,
2492 PrefService::SYNCABLE_PREF); 2495 PrefService::SYNCABLE_PREF);
2493 prefs->RegisterStringPref(prefs::kCloudPrintEmail, 2496 prefs->RegisterStringPref(prefs::kCloudPrintEmail,
2494 std::string(), 2497 std::string(),
2495 PrefService::UNSYNCABLE_PREF); 2498 PrefService::UNSYNCABLE_PREF);
2496 prefs->RegisterBooleanPref(prefs::kCloudPrintProxyEnabled, 2499 prefs->RegisterBooleanPref(prefs::kCloudPrintProxyEnabled,
2497 true, 2500 true,
2498 PrefService::UNSYNCABLE_PREF); 2501 PrefService::UNSYNCABLE_PREF);
2499 prefs->RegisterBooleanPref(prefs::kCloudPrintSubmitEnabled, 2502 prefs->RegisterBooleanPref(prefs::kCloudPrintSubmitEnabled,
(...skipping 2994 matching lines...) Expand 10 before | Expand all | Expand 10 after
5494 local_state->SetBoolean(prefs::kShouldShowFirstRunBubble, false); 5497 local_state->SetBoolean(prefs::kShouldShowFirstRunBubble, false);
5495 window_->GetLocationBar()->ShowFirstRunBubble(); 5498 window_->GetLocationBar()->ShowFirstRunBubble();
5496 } else { 5499 } else {
5497 GlobalErrorService* service = 5500 GlobalErrorService* service =
5498 GlobalErrorServiceFactory::GetForProfile(profile()); 5501 GlobalErrorServiceFactory::GetForProfile(profile());
5499 GlobalError* error = service->GetFirstGlobalErrorWithBubbleView(); 5502 GlobalError* error = service->GetFirstGlobalErrorWithBubbleView();
5500 if (error) 5503 if (error)
5501 error->ShowBubbleView(this); 5504 error->ShowBubbleView(this);
5502 } 5505 }
5503 } 5506 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/advanced_options.html ('k') | chrome/browser/ui/tab_contents/tab_contents_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698