summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-15 23:38:25 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-15 23:38:25 +0000
commit3eb0d8f7bea3e4e54836fa506f4034bcbd3ef4c2 (patch)
treebb7afc78bd7ebb9fea5ed3ed459880511501fb2a /chrome
parent9a7ed36f8ad5d33725064021464180a808a3a5d2 (diff)
downloadchromium_src-3eb0d8f7bea3e4e54836fa506f4034bcbd3ef4c2.zip
chromium_src-3eb0d8f7bea3e4e54836fa506f4034bcbd3ef4c2.tar.gz
chromium_src-3eb0d8f7bea3e4e54836fa506f4034bcbd3ef4c2.tar.bz2
Move GUID utils to src/chrome/common.
BUG=None TEST=compiles,unittests Review URL: http://codereview.chromium.org/5849001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/autofill/autofill_manager.cc2
-rw-r--r--chrome/browser/autofill/autofill_profile.cc2
-rw-r--r--chrome/browser/autofill/autofill_profile_unittest.cc2
-rw-r--r--chrome/browser/autofill/credit_card.cc2
-rw-r--r--chrome/browser/autofill/personal_data_manager_mac.mm2
-rw-r--r--chrome/browser/autofill/personal_data_manager_unittest.cc3
-rw-r--r--chrome/browser/dom_ui/options/autofill_options_handler.cc2
-rw-r--r--chrome/browser/metrics/metrics_service.cc2
-rw-r--r--chrome/browser/policy/device_token_fetcher.cc2
-rw-r--r--chrome/browser/sync/glue/autofill_change_processor.cc2
-rw-r--r--chrome/browser/sync/glue/autofill_model_associator.cc2
-rw-r--r--chrome/browser/webdata/web_data_service_unittest.cc2
-rw-r--r--chrome/browser/webdata/web_database.cc2
-rw-r--r--chrome/browser/webdata/web_database_unittest.cc2
-rw-r--r--chrome/chrome_browser.gypi4
-rw-r--r--chrome/chrome_common.gypi4
-rw-r--r--chrome/chrome_tests.gypi2
-rw-r--r--chrome/common/guid.cc (renamed from chrome/browser/guid.cc)2
-rw-r--r--chrome/common/guid.h (renamed from chrome/browser/guid.h)6
-rw-r--r--chrome/common/guid_posix.cc (renamed from chrome/browser/guid_posix.cc)2
-rw-r--r--chrome/common/guid_unittest.cc (renamed from chrome/browser/guid_unittest.cc)2
-rw-r--r--chrome/common/guid_win.cc (renamed from chrome/browser/guid_win.cc)2
22 files changed, 26 insertions, 27 deletions
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc
index bb19e5f..05b8dc4 100644
--- a/chrome/browser/autofill/autofill_manager.cc
+++ b/chrome/browser/autofill/autofill_manager.cc
@@ -17,12 +17,12 @@
#include "chrome/browser/autofill/form_structure.h"
#include "chrome/browser/autofill/phone_number.h"
#include "chrome/browser/autofill/select_control_handler.h"
-#include "chrome/browser/guid.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/renderer_host/render_view_host.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/guid.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/autofill/autofill_profile.cc b/chrome/browser/autofill/autofill_profile.cc
index 388b219..f1889c0 100644
--- a/chrome/browser/autofill/autofill_profile.cc
+++ b/chrome/browser/autofill/autofill_profile.cc
@@ -19,7 +19,7 @@
#include "chrome/browser/autofill/fax_number.h"
#include "chrome/browser/autofill/home_address.h"
#include "chrome/browser/autofill/home_phone_number.h"
-#include "chrome/browser/guid.h"
+#include "chrome/common/guid.h"
#include "grit/generated_resources.h"
namespace {
diff --git a/chrome/browser/autofill/autofill_profile_unittest.cc b/chrome/browser/autofill/autofill_profile_unittest.cc
index 769296f..7958eae 100644
--- a/chrome/browser/autofill/autofill_profile_unittest.cc
+++ b/chrome/browser/autofill/autofill_profile_unittest.cc
@@ -9,7 +9,7 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/autofill/autofill_common_test.h"
#include "chrome/browser/autofill/autofill_profile.h"
-#include "chrome/browser/guid.h"
+#include "chrome/common/guid.h"
#include "grit/generated_resources.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/chrome/browser/autofill/credit_card.cc b/chrome/browser/autofill/credit_card.cc
index e8e0191..26ed785 100644
--- a/chrome/browser/autofill/credit_card.cc
+++ b/chrome/browser/autofill/credit_card.cc
@@ -14,7 +14,7 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/autofill/autofill_type.h"
#include "chrome/browser/autofill/field_types.h"
-#include "chrome/browser/guid.h"
+#include "chrome/common/guid.h"
#include "grit/generated_resources.h"
namespace {
diff --git a/chrome/browser/autofill/personal_data_manager_mac.mm b/chrome/browser/autofill/personal_data_manager_mac.mm
index 4a9fb25..d6ddf1b 100644
--- a/chrome/browser/autofill/personal_data_manager_mac.mm
+++ b/chrome/browser/autofill/personal_data_manager_mac.mm
@@ -13,7 +13,7 @@
#include "base/sys_string_conversions.h"
#include "chrome/browser/autofill/autofill_profile.h"
#include "chrome/browser/autofill/phone_number.h"
-#include "chrome/browser/guid.h"
+#include "chrome/common/guid.h"
#include "grit/generated_resources.h"
namespace {
diff --git a/chrome/browser/autofill/personal_data_manager_unittest.cc b/chrome/browser/autofill/personal_data_manager_unittest.cc
index a4b3099..f993970 100644
--- a/chrome/browser/autofill/personal_data_manager_unittest.cc
+++ b/chrome/browser/autofill/personal_data_manager_unittest.cc
@@ -12,9 +12,9 @@
#include "chrome/browser/autofill/form_structure.h"
#include "chrome/browser/autofill/personal_data_manager.h"
#include "chrome/browser/browser_thread.h"
-#include "chrome/browser/guid.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/password_manager/encryptor.h"
+#include "chrome/common/guid.h"
#include "chrome/common/notification_details.h"
#include "chrome/common/notification_observer_mock.h"
#include "chrome/common/notification_registrar.h"
@@ -1385,4 +1385,3 @@ TEST_F(PersonalDataManagerTest, AggregateCreditCardWithMissingInfoInOld) {
ASSERT_EQ(1U, results2.size());
EXPECT_EQ(0, expected2.Compare(*results2[0]));
}
-
diff --git a/chrome/browser/dom_ui/options/autofill_options_handler.cc b/chrome/browser/dom_ui/options/autofill_options_handler.cc
index adc1804..e6d0f00 100644
--- a/chrome/browser/dom_ui/options/autofill_options_handler.cc
+++ b/chrome/browser/dom_ui/options/autofill_options_handler.cc
@@ -13,8 +13,8 @@
#include "base/values.h"
#include "chrome/browser/autofill/autofill_profile.h"
#include "chrome/browser/autofill/credit_card.h"
-#include "chrome/browser/guid.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/common/guid.h"
#include "grit/generated_resources.h"
AutoFillOptionsHandler::AutoFillOptionsHandler()
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index 3041549..5aea04a 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -169,7 +169,6 @@
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/guid.h"
#include "chrome/browser/load_notification_details.h"
#include "chrome/browser/memory_details.h"
#include "chrome/browser/metrics/histogram_synchronizer.h"
@@ -181,6 +180,7 @@
#include "chrome/common/child_process_info.h"
#include "chrome/common/child_process_logging.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/guid.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/render_messages.h"
diff --git a/chrome/browser/policy/device_token_fetcher.cc b/chrome/browser/policy/device_token_fetcher.cc
index ce7ee4b..678c90f 100644
--- a/chrome/browser/policy/device_token_fetcher.cc
+++ b/chrome/browser/policy/device_token_fetcher.cc
@@ -8,11 +8,11 @@
#include "base/path_service.h"
#include "base/singleton.h"
#include "base/string_util.h"
-#include "chrome/browser/guid.h"
#include "chrome/browser/net/gaia/token_service.h"
#include "chrome/browser/policy/proto/device_management_local.pb.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_paths.h"
+#include "chrome/common/guid.h"
#include "chrome/common/net/gaia/gaia_constants.h"
#include "chrome/common/notification_details.h"
#include "chrome/common/notification_service.h"
diff --git a/chrome/browser/sync/glue/autofill_change_processor.cc b/chrome/browser/sync/glue/autofill_change_processor.cc
index eed58fc..155e6e7 100644
--- a/chrome/browser/sync/glue/autofill_change_processor.cc
+++ b/chrome/browser/sync/glue/autofill_change_processor.cc
@@ -9,7 +9,6 @@
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/guid.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/autofill/personal_data_manager.h"
#include "chrome/browser/sync/glue/autofill_change_processor2.h"
@@ -18,6 +17,7 @@
#include "chrome/browser/webdata/autofill_change.h"
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/browser/webdata/web_database.h"
+#include "chrome/common/guid.h"
#include "chrome/common/notification_service.h"
namespace browser_sync {
diff --git a/chrome/browser/sync/glue/autofill_model_associator.cc b/chrome/browser/sync/glue/autofill_model_associator.cc
index cc5a37f..06b28af 100644
--- a/chrome/browser/sync/glue/autofill_model_associator.cc
+++ b/chrome/browser/sync/glue/autofill_model_associator.cc
@@ -12,13 +12,13 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/autofill/autofill_profile.h"
#include "chrome/browser/browser_thread.h"
-#include "chrome/browser/guid.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/engine/syncapi.h"
#include "chrome/browser/sync/glue/autofill_change_processor.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/protocol/autofill_specifics.pb.h"
#include "chrome/browser/webdata/web_database.h"
+#include "chrome/common/guid.h"
#include "net/base/escape.h"
using base::TimeTicks;
diff --git a/chrome/browser/webdata/web_data_service_unittest.cc b/chrome/browser/webdata/web_data_service_unittest.cc
index 81f34b4..d56aebf 100644
--- a/chrome/browser/webdata/web_data_service_unittest.cc
+++ b/chrome/browser/webdata/web_data_service_unittest.cc
@@ -21,12 +21,12 @@
#include "chrome/browser/autofill/autofill_profile.h"
#include "chrome/browser/autofill/credit_card.h"
#include "chrome/browser/browser_thread.h"
-#include "chrome/browser/guid.h"
#include "chrome/browser/webdata/autofill_change.h"
#include "chrome/browser/webdata/autofill_entry.h"
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/browser/webdata/web_data_service_test_util.h"
#include "chrome/common/chrome_paths.h"
+#include "chrome/common/guid.h"
#include "chrome/common/notification_details.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/notification_type.h"
diff --git a/chrome/browser/webdata/web_database.cc b/chrome/browser/webdata/web_database.cc
index 1229339..2400c04 100644
--- a/chrome/browser/webdata/web_database.cc
+++ b/chrome/browser/webdata/web_database.cc
@@ -21,11 +21,11 @@
#include "chrome/browser/autofill/autofill_type.h"
#include "chrome/browser/autofill/credit_card.h"
#include "chrome/browser/diagnostics/sqlite_diagnostics.h"
-#include "chrome/browser/guid.h"
#include "chrome/browser/history/history_database.h"
#include "chrome/browser/password_manager/encryptor.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/webdata/autofill_change.h"
+#include "chrome/common/guid.h"
#include "chrome/common/notification_service.h"
#include "gfx/codec/png_codec.h"
#include "third_party/skia/include/core/SkBitmap.h"
diff --git a/chrome/browser/webdata/web_database_unittest.cc b/chrome/browser/webdata/web_database_unittest.cc
index dcae787..dc38100 100644
--- a/chrome/browser/webdata/web_database_unittest.cc
+++ b/chrome/browser/webdata/web_database_unittest.cc
@@ -22,13 +22,13 @@
#include "chrome/browser/autofill/autofill_profile.h"
#include "chrome/browser/autofill/autofill_type.h"
#include "chrome/browser/autofill/credit_card.h"
-#include "chrome/browser/guid.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/password_manager/encryptor.h"
#include "chrome/browser/webdata/autofill_change.h"
#include "chrome/browser/webdata/autofill_entry.h"
#include "chrome/browser/webdata/web_database.h"
#include "chrome/common/chrome_paths.h"
+#include "chrome/common/guid.h"
#include "chrome/test/ui_test_utils.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi
index 904691b..2b9bf61 100644
--- a/chrome/chrome_browser.gypi
+++ b/chrome/chrome_browser.gypi
@@ -1566,10 +1566,6 @@
'browser/gtk/update_recommended_dialog.h',
'browser/gtk/view_id_util.cc',
'browser/gtk/view_id_util.h',
- 'browser/guid.h',
- 'browser/guid.cc',
- 'browser/guid_posix.cc',
- 'browser/guid_win.cc',
'browser/hang_monitor/hung_plugin_action.cc',
'browser/hang_monitor/hung_plugin_action.h',
'browser/hang_monitor/hung_window_detector.cc',
diff --git a/chrome/chrome_common.gypi b/chrome/chrome_common.gypi
index b9aaaa4..b8d4d5d 100644
--- a/chrome/chrome_common.gypi
+++ b/chrome/chrome_common.gypi
@@ -83,6 +83,10 @@
'common/gpu_param_traits.h',
'common/gpu_video_common.cc',
'common/gpu_video_common.h',
+ 'common/guid.h',
+ 'common/guid.cc',
+ 'common/guid_posix.cc',
+ 'common/guid_win.cc',
'common/indexed_db_key.cc',
'common/indexed_db_key.h',
'common/indexed_db_messages.cc',
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi
index 2eeacb0..a642455 100644
--- a/chrome/chrome_tests.gypi
+++ b/chrome/chrome_tests.gypi
@@ -1187,7 +1187,6 @@
'browser/gtk/reload_button_gtk_unittest.cc',
'browser/gtk/status_icons/status_tray_gtk_unittest.cc',
'browser/gtk/tabs/tab_renderer_gtk_unittest.cc',
- 'browser/guid_unittest.cc',
'browser/history/expire_history_backend_unittest.cc',
'browser/history/history_backend_unittest.cc',
'browser/history/history_querying_unittest.cc',
@@ -1605,6 +1604,7 @@
'common/gpu_feature_flags_unittest.cc',
'common/gpu_info_unittest.cc',
'common/gpu_messages_unittest.cc',
+ 'common/guid_unittest.cc',
'common/important_file_writer_unittest.cc',
'common/json_pref_store_unittest.cc',
'common/json_schema_validator_unittest_base.cc',
diff --git a/chrome/browser/guid.cc b/chrome/common/guid.cc
index b8f46db..a6b4b09 100644
--- a/chrome/browser/guid.cc
+++ b/chrome/common/guid.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/guid.h"
+#include "chrome/common/guid.h"
#include "base/rand_util.h"
#include "base/stringprintf.h"
diff --git a/chrome/browser/guid.h b/chrome/common/guid.h
index b5aa67d..9121c9e 100644
--- a/chrome/browser/guid.h
+++ b/chrome/common/guid.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_GUID_H_
-#define CHROME_BROWSER_GUID_H_
+#ifndef CHROME_COMMON_GUID_H_
+#define CHROME_COMMON_GUID_H_
#pragma once
#include <string>
@@ -29,4 +29,4 @@ std::string RandomDataToGUIDString(const uint64 bytes[2]);
} // namespace guid
-#endif // CHROME_BROWSER_GUID_H_
+#endif // CHROME_COMMON_GUID_H_
diff --git a/chrome/browser/guid_posix.cc b/chrome/common/guid_posix.cc
index 48d7198..f21788b 100644
--- a/chrome/browser/guid_posix.cc
+++ b/chrome/common/guid_posix.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/guid.h"
+#include "chrome/common/guid.h"
#include "base/rand_util.h"
#include "base/stringprintf.h"
diff --git a/chrome/browser/guid_unittest.cc b/chrome/common/guid_unittest.cc
index 1951ca1..628bafc 100644
--- a/chrome/browser/guid_unittest.cc
+++ b/chrome/common/guid_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/guid.h"
+#include "chrome/common/guid.h"
#include <limits>
diff --git a/chrome/browser/guid_win.cc b/chrome/common/guid_win.cc
index 115e806..0d95cd6 100644
--- a/chrome/browser/guid_win.cc
+++ b/chrome/common/guid_win.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/guid.h"
+#include "chrome/common/guid.h"
#include <stdlib.h>