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

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

Issue 1279123004: Replace ToLower calls to the new format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/shell_integration.h" 5 #include "chrome/browser/shell_integration.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shlwapi.h> 8 #include <shlwapi.h>
9 #include <shobjidl.h> 9 #include <shobjidl.h>
10 #include <propkey.h> // Needs to come after shobjidl.h. 10 #include <propkey.h> // Needs to come after shobjidl.h.
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 if (key.Valid() && (key.ReadValue(L"Progid", &app_cmd) == ERROR_SUCCESS) && 379 if (key.Valid() && (key.ReadValue(L"Progid", &app_cmd) == ERROR_SUCCESS) &&
380 app_cmd == L"FirefoxURL") 380 app_cmd == L"FirefoxURL")
381 ff_default = true; 381 ff_default = true;
382 } else { 382 } else {
383 base::string16 key_path(L"http"); 383 base::string16 key_path(L"http");
384 key_path.append(ShellUtil::kRegShellOpen); 384 key_path.append(ShellUtil::kRegShellOpen);
385 base::win::RegKey key(HKEY_CLASSES_ROOT, key_path.c_str(), KEY_READ); 385 base::win::RegKey key(HKEY_CLASSES_ROOT, key_path.c_str(), KEY_READ);
386 base::string16 app_cmd; 386 base::string16 app_cmd;
387 if (key.Valid() && (key.ReadValue(L"", &app_cmd) == ERROR_SUCCESS) && 387 if (key.Valid() && (key.ReadValue(L"", &app_cmd) == ERROR_SUCCESS) &&
388 base::string16::npos != 388 base::string16::npos !=
389 base::StringToLowerASCII(app_cmd).find(L"firefox")) 389 base::ToLowerASCII(app_cmd).find(L"firefox"))
390 ff_default = true; 390 ff_default = true;
391 } 391 }
392 return ff_default; 392 return ff_default;
393 } 393 }
394 394
395 base::string16 ShellIntegration::GetAppModelIdForProfile( 395 base::string16 ShellIntegration::GetAppModelIdForProfile(
396 const base::string16& app_name, 396 const base::string16& app_name,
397 const base::FilePath& profile_path) { 397 const base::FilePath& profile_path) {
398 std::vector<base::string16> components; 398 std::vector<base::string16> components;
399 components.push_back(app_name); 399 components.push_back(app_name);
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 } 581 }
582 582
583 shortcut = shortcut.Append(shortcut_name).Append(shortcut_name + 583 shortcut = shortcut.Append(shortcut_name).Append(shortcut_name +
584 installer::kLnkExt); 584 installer::kLnkExt);
585 if (base::PathExists(shortcut)) 585 if (base::PathExists(shortcut))
586 return shortcut; 586 return shortcut;
587 } 587 }
588 588
589 return base::FilePath(); 589 return base::FilePath();
590 } 590 }
OLDNEW
« no previous file with comments | « chrome/browser/search/hotword_service.cc ('k') | chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698