Пушыстый (_winnie) wrote,
Пушыстый
_winnie

Гуглохром. Поисковик в России останется только один.

$ svn diff -r84234:84235 http://src.chromium.org/svn/trunk/src
......
Index: chrome/browser/first_run/first_run.cc
===================================================================
--- chrome/browser/first_run/first_run.cc   (revision 84234)
+++ chrome/browser/first_run/first_run.cc   (revision 84235)
@@ -396,6 +396,14 @@
 }

 // static
+bool FirstRun::SearchEngineSelectorDisallowed() {
+  // For now, the only case in which the search engine dialog should never be
+  // shown is if the locale is Russia.
+  std::string locale = g_browser_process->GetApplicationLocale();
+  return (locale == "ru");
+}


или в двух-панельном виде - http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/first_run/first_run.cc?view=diff&r1=84234&r2=84235

см. также http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/first_run/first_run.cc?view=diff&r1=101585&r2=101586
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 33 comments