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

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

Issue 18263: Move search engines files into subdir (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This code glues the RLZ library DLL with Chrome. It allows Chrome to work 5 // This code glues the RLZ library DLL with Chrome. It allows Chrome to work
6 // with or without the DLL being present. If the DLL is not present the 6 // with or without the DLL being present. If the DLL is not present the
7 // functions do nothing and just return false. 7 // functions do nothing and just return false.
8 8
9 #include "chrome/browser/rlz/rlz.h" 9 #include "chrome/browser/rlz/rlz.h"
10 10
11 #include <windows.h> 11 #include <windows.h>
12 #include <process.h> 12 #include <process.h>
13 13
14 #include "base/file_util.h" 14 #include "base/file_util.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/task.h" 17 #include "base/task.h"
18 #include "base/thread.h" 18 #include "base/thread.h"
19 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
20 #include "chrome/browser/profile.h" 20 #include "chrome/browser/profile.h"
21 #include "chrome/browser/profile_manager.h" 21 #include "chrome/browser/profile_manager.h"
22 #include "chrome/browser/template_url_model.h" 22 #include "chrome/browser/search_engines/template_url_model.h"
23 #include "chrome/common/chrome_paths.h" 23 #include "chrome/common/chrome_paths.h"
24 #include "chrome/common/env_vars.h" 24 #include "chrome/common/env_vars.h"
25 #include "chrome/common/notification_service.h" 25 #include "chrome/common/notification_service.h"
26 #include "chrome/installer/util/google_update_settings.h" 26 #include "chrome/installer/util/google_update_settings.h"
27 27
28 namespace { 28 namespace {
29 29
30 // The maximum length of an access points RLZ in wide chars. 30 // The maximum length of an access points RLZ in wide chars.
31 const DWORD kMaxRlzLength = 64; 31 const DWORD kMaxRlzLength = 64;
32 32
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 if (!get_access_point(point, str_rlz, kMaxRlzLength, NULL)) 307 if (!get_access_point(point, str_rlz, kMaxRlzLength, NULL))
308 return false; 308 return false;
309 if (CHROME_OMNIBOX == point) { 309 if (CHROME_OMNIBOX == point) {
310 access_values_state = ACCESS_VALUES_FRESH; 310 access_values_state = ACCESS_VALUES_FRESH;
311 cached_ommibox_rlz.assign(str_rlz); 311 cached_ommibox_rlz.assign(str_rlz);
312 } 312 }
313 *rlz = str_rlz; 313 *rlz = str_rlz;
314 return true; 314 return true;
315 } 315 }
316 316
OLDNEW
« no previous file with comments | « chrome/browser/render_view_context_menu_controller.cc ('k') | chrome/browser/tab_contents/web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698