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

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

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 #include "chrome/browser/template_url_prepopulate_data.h" 5 #include "chrome/browser/template_url_prepopulate_data.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/template_url.h" 8 #include "chrome/browser/template_url.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
11 #include "chrome/common/pref_service.h" 11 #include "chrome/common/pref_service.h"
12 #undef IN // On Windows, windef.h defines this, which screws up "India" cases. 12 #undef IN // On Windows, windef.h defines this, which screws up "India" cases.
13 13
14 using base::Time;
15
14 namespace { 16 namespace {
15 17
16 // NOTE: See comments in GetDataVersion() below! You should probably not change 18 // NOTE: See comments in GetDataVersion() below! You should probably not change
17 // the data in this file without changing the result of that function! 19 // the data in this file without changing the result of that function!
18 20
19 // Engine definitions ////////////////////////////////////////////////////////// 21 // Engine definitions //////////////////////////////////////////////////////////
20 22
21 struct PrepopulatedEngine { 23 struct PrepopulatedEngine {
22 const wchar_t* const name; 24 const wchar_t* const name;
23 // If NULL, we'll autogenerate a keyword based on the search_url every time 25 // If NULL, we'll autogenerate a keyword based on the search_url every time
(...skipping 3013 matching lines...) Expand 10 before | Expand all | Expand 10 after
3037 new_turl->set_date_created(Time()); 3039 new_turl->set_date_created(Time());
3038 std::vector<std::string> turl_encodings; 3040 std::vector<std::string> turl_encodings;
3039 turl_encodings.push_back(engines[i]->encoding); 3041 turl_encodings.push_back(engines[i]->encoding);
3040 new_turl->set_input_encodings(turl_encodings); 3042 new_turl->set_input_encodings(turl_encodings);
3041 new_turl->set_prepopulate_id(engines[i]->id); 3043 new_turl->set_prepopulate_id(engines[i]->id);
3042 t_urls->push_back(new_turl); 3044 t_urls->push_back(new_turl);
3043 } 3045 }
3044 } 3046 }
3045 3047
3046 } // namespace TemplateURLPrepopulateData 3048 } // namespace TemplateURLPrepopulateData
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698